diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-16 16:37:29 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 22:36:25 +0100 |
commit | b6bfe1420517aa5aa190e17dca40ea70f09effd9 (patch) | |
tree | 2591a26f18290e8d929517df71f24645394c57fb /bitbake/lib/bb/data.py | |
parent | a45e1d54e19d4cd728e90df929b212e41ef70d4b (diff) | |
download | poky-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.gz |
bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run shell and python under a fakeroot environment
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r-- | bitbake/lib/bb/data.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 636983edcc..9e37f5e32d 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -229,6 +229,15 @@ def emit_env(o=sys.__stdout__, d = init(), all=False): | |||
229 | for key in keys: | 229 | for key in keys: |
230 | emit_var(key, o, d, all and not isfunc) and o.write('\n') | 230 | emit_var(key, o, d, all and not isfunc) and o.write('\n') |
231 | 231 | ||
232 | def export_vars(d): | ||
233 | keys = (key for key in d.keys() if d.getVarFlag(key, "export")) | ||
234 | ret = {} | ||
235 | for k in keys: | ||
236 | v = d.getVar(k, True) | ||
237 | if v: | ||
238 | ret[k] = v | ||
239 | return ret | ||
240 | |||
232 | def update_data(d): | 241 | def update_data(d): |
233 | """Performs final steps upon the datastore, including application of overrides""" | 242 | """Performs final steps upon the datastore, including application of overrides""" |
234 | d.finalize() | 243 | d.finalize() |