bitbake/runqueue.py: Ensure fakeroot env variables make it to the child process

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-03-31 17:21:44 +01:00
parent 43fe018e3a
commit 2b70d0cdd1
1 changed files with 2 additions and 0 deletions

View File

@ -1063,6 +1063,7 @@ class RunQueueExecute:
# We need to setup the environment BEFORE the fork, since
# a fork() or exec*() activates PSEUDO...
env = {}
envbackup = {}
taskdep = self.rqdata.dataCache.task_deps[fn]
@ -1071,6 +1072,7 @@ class RunQueueExecute:
for key, value in (var.split('=') for var in envvars):
envbackup[key] = os.environ.get(key)
os.environ[key] = value
env[key] = value
fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split()
for p in fakedirs: