diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-31 17:21:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-31 17:21:44 +0100 |
commit | 2b70d0cdd116c2cd4a2c4f4e7aebe0ab545de7da (patch) | |
tree | aa47ed8c395927cd0e9e104399734747acb96668 /bitbake/lib/bb | |
parent | 43fe018e3a9a184c6bf491082488576d2a5bac32 (diff) | |
download | poky-2b70d0cdd116c2cd4a2c4f4e7aebe0ab545de7da.tar.gz |
bitbake/runqueue.py: Ensure fakeroot env variables make it to the child process
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 9000c5cafc..95828ca2d6 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1063,6 +1063,7 @@ class RunQueueExecute: | |||
1063 | # We need to setup the environment BEFORE the fork, since | 1063 | # We need to setup the environment BEFORE the fork, since |
1064 | # a fork() or exec*() activates PSEUDO... | 1064 | # a fork() or exec*() activates PSEUDO... |
1065 | 1065 | ||
1066 | env = {} | ||
1066 | envbackup = {} | 1067 | envbackup = {} |
1067 | 1068 | ||
1068 | taskdep = self.rqdata.dataCache.task_deps[fn] | 1069 | taskdep = self.rqdata.dataCache.task_deps[fn] |
@@ -1071,6 +1072,7 @@ class RunQueueExecute: | |||
1071 | for key, value in (var.split('=') for var in envvars): | 1072 | for key, value in (var.split('=') for var in envvars): |
1072 | envbackup[key] = os.environ.get(key) | 1073 | envbackup[key] = os.environ.get(key) |
1073 | os.environ[key] = value | 1074 | os.environ[key] = value |
1075 | env[key] = value | ||
1074 | 1076 | ||
1075 | fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split() | 1077 | fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split() |
1076 | for p in fakedirs: | 1078 | for p in fakedirs: |