]> code.ossystems Code Review - openembedded-core.git/commitdiff
terminal: Ensure existing environment exports are preserved in devshell
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Nov 2012 11:23:33 +0000 (11:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Nov 2012 11:27:43 +0000 (11:27 +0000)
After recent changes to terminal.bbclass, variables like PATH were no longer
preserved within the devshell. This change ensures they are inherited into
the environment of devshell and PATH for example has the correct values.

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

index 4a3ddef04f66f4e9aed05fb68622f5cdb930982a..cec854d54a00711b037613bacad3e47ca519cf33 100644 (file)
@@ -17,6 +17,9 @@ def oe_terminal(command, title, d):
 
     env = dict()
 
+    for v in os.environ:
+        env[v] = os.environ[v]
+
     for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
         value = d.getVar(export, True)
         if value is not None: