]> code.ossystems Code Review - openembedded-core.git/commitdiff
terminal.bbclass: Ensure parent environment is set
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Oct 2012 16:36:50 +0000 (16:36 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Nov 2012 11:49:13 +0000 (11:49 +0000)
If this isn't done, various terminals fail to launch correctly
with "No such file or directory" errors. This adds back the environment
manipulation removed in the addition of "custom" terminal command
support but shouldn't regress that additional functionality

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

index 51846c125c08be9ad9ba178c9283ac3d20d14538..4a3ddef04f66f4e9aed05fb68622f5cdb930982a 100644 (file)
@@ -20,6 +20,7 @@ def oe_terminal(command, title, d):
     for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
         value = d.getVar(export, True)
         if value is not None:
+            os.environ[export] = str(value)
             env[export] = str(value)
 
     terminal = oe.data.typed_value('OE_TERMINAL', d).lower()