diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-21 00:51:24 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-21 00:51:24 +0000 |
commit | 52aada2eaf08d57d5f715f155f2d878831dbaab0 (patch) | |
tree | 7be1aa47f4f7a4816b8202c2bac7003583fdc70e /bitbake/lib/bb | |
parent | 60ccdaa0ea128ac19113c0746c6e12bd02b2fc12 (diff) | |
download | openembedded-core-52aada2eaf08d57d5f715f155f2d878831dbaab0.tar.gz openembedded-core-52aada2eaf08d57d5f715f155f2d878831dbaab0.tar.bz2 openembedded-core-52aada2eaf08d57d5f715f155f2d878831dbaab0.tar.xz openembedded-core-52aada2eaf08d57d5f715f155f2d878831dbaab0.zip |
bitbake/runqueue.py: Somehow the python environment mapping is failing so do it manually
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index b4134f826..37e1ac06b 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1076,7 +1076,10 @@ class RunQueueExecute: env['PATH'] = self.cooker.configuration.initial_path envbackup = os.environ.copy() - os.environ = env + for e in envbackup: + os.unsetenv(e) + for e in env: + os.putenv(e, env[e]) sys.stdout.flush() sys.stderr.flush() @@ -1128,7 +1131,10 @@ class RunQueueExecute: except: os._exit(1) - os.environ = envbackup + for e in env: + os.unsetenv(e) + for e in envbackup: + os.putenv(e, envbackup[e]) return pid, pipein, pipeout |