[oe-commits] Chris Larson : terminal: fix issue with unset exportable env vars

git version control git at git.openembedded.org
Thu Aug 25 01:33:28 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 332f2a9febfc3697ed4a20fca3016e0399ae90eb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=332f2a9febfc3697ed4a20fca3016e0399ae90eb

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Aug 24 13:00:03 2011 -0700

terminal: fix issue with unset exportable env vars

This should resolve the devshell issue people are seeing.

Signed-off-by: Chris Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/terminal.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index 4123046..f29aeb0 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -30,7 +30,9 @@ def oe_terminal(command, title, d):
 
     env = dict(os.environ)
     for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
-        env[export] = d.getVar(export, True)
+        value = d.getVar(export, True)
+        if value is not None:
+            env[export] = str(value)
 
     try:
         oe.terminal.spawn_preferred(command, title, env)





More information about the Openembedded-commits mailing list