summaryrefslogtreecommitdiffstats
path: root/lib/bb/process.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-14 08:10:36 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-14 08:13:09 -0700
commit2c8683234acf514706b2b69f5b29405485e664dd (patch)
treedf0ad2bb972f0d6c8e976ab2b7e2a149738f4e0a /lib/bb/process.py
parent76aeea2c23a518046d0b26f1a6fc43287a180a9d (diff)
downloadbitbake-contrib-2c8683234acf514706b2b69f5b29405485e664dd.tar.gz
Fix PWD issue with new exec_func_shell
The previous attempt was incorrect. The issue isn't that subprocess fails to set PWD, it's that PWD is in the metadata, inherited from the environment, and is re-exported, overwriting the actual accurate one in the shell environment with the old one from the metadata. So, ensure that PWD in the metadata is not exported. We can ditch this when the environment handling is reworked (e.g. poky's commit to do so). Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/process.py')
-rw-r--r--lib/bb/process.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/bb/process.py b/lib/bb/process.py
index 1c790658c..f02332df9 100644
--- a/lib/bb/process.py
+++ b/lib/bb/process.py
@@ -1,4 +1,3 @@
-import os
import logging
import signal
import subprocess
@@ -9,7 +8,6 @@ def subprocess_setup():
# Python installs a SIGPIPE handler by default. This is usually not what
# non-Python subprocesses expect.
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
- os.environ['PWD'] = os.getcwd()
class CmdError(RuntimeError):
def __init__(self, command):