mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 05:02:24 +02:00
bitbake/runqueue.py: Somehow the python environment mapping is failing so do it manually
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user