summaryrefslogtreecommitdiffstats
path: root/meta/classes
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 19:23:42 -0700
commita097c26ca06ca345ee37e13e558dca38dadc09ad (patch)
tree4b50528b649c4a508264ed078d5c2605341fd1c8 /meta/classes
parentf5cddf955d7f8a2bf3a3fadf26219a4ddcdf6279 (diff)
downloadpoky-a097c26ca06ca345ee37e13e558dca38dadc09ad.tar.gz
terminal: fix issue with unset exportable env vars
This should resolve the devshell issue people are seeing. (From OE-Core rev: 332f2a9febfc3697ed4a20fca3016e0399ae90eb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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):
30 30
31 env = dict(os.environ) 31 env = dict(os.environ)
32 for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d): 32 for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
33 env[export] = d.getVar(export, True) 33 value = d.getVar(export, True)
34 if value is not None:
35 env[export] = str(value)
34 36
35 try: 37 try:
36 oe.terminal.spawn_preferred(command, title, env) 38 oe.terminal.spawn_preferred(command, title, env)