mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00: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
|
env['PATH'] = self.cooker.configuration.initial_path
|
||||||
|
|
||||||
envbackup = os.environ.copy()
|
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.stdout.flush()
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
@@ -1128,7 +1131,10 @@ class RunQueueExecute:
|
|||||||
except:
|
except:
|
||||||
os._exit(1)
|
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
|
return pid, pipein, pipeout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user