From patchwork Tue Dec 4 10:19:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: qa.py: Modify the env for the child process only Date: Tue, 04 Dec 2012 10:19:50 -0000 From: Shakeel, Muhammad X-Patchwork-Id: 40239 Message-Id: <1354616390-14949-1-git-send-email-muhammad_shakeel@mentor.com> To: openembedded-core@lists.openembedded.org Cc: Christopher Larson From: Muhammad Shakeel 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 Signed-off-by: Muhammad Shakeel --- 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: