]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
Fix PWD issue with new exec_func_shell
authorChris Larson <chris_larson@mentor.com>
Tue, 14 Dec 2010 15:10:36 +0000 (08:10 -0700)
committerChris Larson <chris_larson@mentor.com>
Tue, 14 Dec 2010 15:13:09 +0000 (08:13 -0700)
commit2c8683234acf514706b2b69f5b29405485e664dd
treedf0ad2bb972f0d6c8e976ab2b7e2a149738f4e0a
parent76aeea2c23a518046d0b26f1a6fc43287a180a9d
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>
lib/bb/build.py
lib/bb/process.py