[oe-commits] Richard Purdie : terminal: Ensure existing environment exports are preserved in devshell
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 2 11:29:15 UTC 2012
Module: openembedded-core.git
Branch: master-next
Commit: e94fabd356ad710e7c32c97fba4bee76895f543b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e94fabd356ad710e7c32c97fba4bee76895f543b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Fri Nov 2 11:23:33 2012 +0000
terminal: Ensure existing environment exports are preserved in devshell
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 at linuxfoundation.org>
---
meta/classes/terminal.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index 4a3ddef..cec854d 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -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:
More information about the Openembedded-commits
mailing list