summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-08-24 13:00:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-24 18:31:21 -0700
commit332f2a9febfc3697ed4a20fca3016e0399ae90eb (patch)
treef2254caebf119634a2bec4e7ef5b7c1a5e545c0d /meta
parent8069549937f8d1e266eb0a2d6b4c1321b08ed69b (diff)
downloadopenembedded-core-332f2a9febfc3697ed4a20fca3016e0399ae90eb.tar.gz
openembedded-core-332f2a9febfc3697ed4a20fca3016e0399ae90eb.tar.bz2
openembedded-core-332f2a9febfc3697ed4a20fca3016e0399ae90eb.zip
terminal: fix issue with unset exportable env vars
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/terminal.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index 41230466c4..f29aeb0e12 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)