summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-09-08 18:38:43 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-08 19:22:37 +0100
commit3e7db72216472050366c3059219660dea057e80b (patch)
tree4f29cd0ea032a1620e4d439071f668bcc16dfa8c /bitbake/lib/bb
parent8be5593777be3a6617791fc70e9aa47d54ca1676 (diff)
downloadpoky-3e7db72216472050366c3059219660dea057e80b.tar.gz
bitbake: save the initial PATH for use when starting a subprocess
It was possible for bitbake-runtime to be run against a semi-installed python-native resulting in tracebacks with ImportError's. To prevent this we stash the initial PATH in the BBConfiguration when bitbake is started and then set this in the env when launching bitbake-runtask through subprocesses Popen() call. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/runqueue.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 3d84bb17ee..4d1dc49d78 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1042,6 +1042,7 @@ class RunQueueExecute:
1042 env[comps[0]] = comps[1] 1042 env[comps[0]] = comps[1]
1043 1043
1044 env['BB_TASKHASH'] = self.rqdata.runq_hash[task] 1044 env['BB_TASKHASH'] = self.rqdata.runq_hash[task]
1045 env['PATH'] = self.cooker.configuration.initial_path
1045 1046
1046 sys.stdout.flush() 1047 sys.stdout.flush()
1047 sys.stderr.flush() 1048 sys.stderr.flush()