[PATCH] qa.py: Modify the env for the child process only

DORMANTno replies

From: Shakeel, Muhammad <hidden>
Date: 2012-12-04 10:34:14
Subsystem: the rest · Maintainer: Linus Torvalds

From: Muhammad Shakeel <redacted>

Modified environment is only required for new subprocess to execute
objdump command and not for the current process. We should only
modify the copy of env to pass it on to the child.

Signed-off-by: Christopher Larson <redacted>
Signed-off-by: Muhammad Shakeel <redacted>
---
 meta/lib/oe/qa.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py
index 12dcd1f..2c51141 100644
--- a/meta/lib/oe/qa.py
+++ b/meta/lib/oe/qa.py
@@ -99,7 +99,7 @@ class ELFFile:
         objdump = d.getVar('OBJDUMP', True)
         staging_dir = d.getVar('STAGING_BINDIR_TOOLCHAIN', True)
 
-        env = os.environ
+        env = os.environ.copy()
         env["LC_ALL"] = "C"
 
         try:
-- 
1.7.9.5


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help