summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-21 00:51:24 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-21 00:51:24 +0000
commit52aada2eaf08d57d5f715f155f2d878831dbaab0 (patch)
tree7be1aa47f4f7a4816b8202c2bac7003583fdc70e /bitbake/lib/bb/runqueue.py
parent60ccdaa0ea128ac19113c0746c6e12bd02b2fc12 (diff)
downloadpoky-52aada2eaf08d57d5f715f155f2d878831dbaab0.tar.gz
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/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index b4134f8266..37e1ac06bf 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1076,7 +1076,10 @@ class RunQueueExecute:
1076 env['PATH'] = self.cooker.configuration.initial_path 1076 env['PATH'] = self.cooker.configuration.initial_path
1077 1077
1078 envbackup = os.environ.copy() 1078 envbackup = os.environ.copy()
1079 os.environ = env 1079 for e in envbackup:
1080 os.unsetenv(e)
1081 for e in env:
1082 os.putenv(e, env[e])
1080 1083
1081 sys.stdout.flush() 1084 sys.stdout.flush()
1082 sys.stderr.flush() 1085 sys.stderr.flush()
@@ -1128,7 +1131,10 @@ class RunQueueExecute:
1128 except: 1131 except:
1129 os._exit(1) 1132 os._exit(1)
1130 1133
1131 os.environ = envbackup 1134 for e in env:
1135 os.unsetenv(e)
1136 for e in envbackup:
1137 os.putenv(e, envbackup[e])
1132 1138
1133 return pid, pipein, pipeout 1139 return pid, pipein, pipeout
1134 1140