diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-14 08:10:36 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:50 +0000 |
commit | ea91b1dd878a5c726ee5118b98c4987fa0a994e7 (patch) | |
tree | 49e32258da6c0cfd7bc589b2a34585d10c1ed725 /bitbake/lib/bb/process.py | |
parent | 9260c08e1d4d2cf62639a77e8ca28ef0f30ab4be (diff) | |
download | poky-ea91b1dd878a5c726ee5118b98c4987fa0a994e7.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).
(Bitbake rev: 2c8683234acf514706b2b69f5b29405485e664dd)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r-- | bitbake/lib/bb/process.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index 1c790658c9..f02332df9a 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
@@ -1,4 +1,3 @@ | |||
1 | import os | ||
2 | import logging | 1 | import logging |
3 | import signal | 2 | import signal |
4 | import subprocess | 3 | import subprocess |
@@ -9,7 +8,6 @@ def subprocess_setup(): | |||
9 | # Python installs a SIGPIPE handler by default. This is usually not what | 8 | # Python installs a SIGPIPE handler by default. This is usually not what |
10 | # non-Python subprocesses expect. | 9 | # non-Python subprocesses expect. |
11 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) | 10 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
12 | os.environ['PWD'] = os.getcwd() | ||
13 | 11 | ||
14 | class CmdError(RuntimeError): | 12 | class CmdError(RuntimeError): |
15 | def __init__(self, command): | 13 | def __init__(self, command): |