]> code.ossystems Code Review - openembedded-core.git/commitdiff
qa.py: Modify the env for the child process only
authorMuhammad Shakeel <muhammad_shakeel@mentor.com>
Tue, 4 Dec 2012 10:19:50 +0000 (15:19 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Dec 2012 10:51:31 +0000 (10:51 +0000)
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 <chris_larson@mentor.com>
Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/qa.py

index 12dcd1fa494f98fd7b6da7f0627914a48ad4fa93..2c511415159993614363fb58bb7e5c01829f1a98 100644 (file)
@@ -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: