[oe-commits] Muhammad Shakeel : qa.py: Modify the env for the child process only

git at git.openembedded.org git at git.openembedded.org
Tue Dec 4 20:54:31 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: cb3b046450b47739daf441a0b964823aff2472e6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=cb3b046450b47739daf441a0b964823aff2472e6

Author: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Date:   Tue Dec  4 15:19:50 2012 +0500

qa.py: Modify the env for the child process only

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 at mentor.com>
Signed-off-by: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/qa.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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:





More information about the Openembedded-commits mailing list