]> code.ossystems Code Review - openembedded-core.git/commitdiff
terminal: fix issue with unset exportable env vars
authorChris Larson <chris_larson@mentor.com>
Wed, 24 Aug 2011 20:00:03 +0000 (13:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2011 01:31:21 +0000 (18:31 -0700)
This should resolve the devshell issue people are seeing.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/terminal.bbclass

index 41230466c4188c39d7ed3c6ed1c885b9c9150be1..f29aeb0e12c26d9873ff6e6384813b15d533cb99 100644 (file)
@@ -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)