diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-25 15:28:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-30 15:48:09 +0000 |
commit | 1fce7ecbbb004a5ad82da3eef79cfd52b276708d (patch) | |
tree | dc19c8ecb8e0b04ba5eafd27a7679bb55585a868 /bitbake/bin/bitbake-worker | |
parent | 1d0c124cdf0282b8d139063409e40982f0ec9888 (diff) | |
download | poky-1fce7ecbbb004a5ad82da3eef79cfd52b276708d.tar.gz |
bitbake: bitbake: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
(Bitbake rev: 3b45c479de8640f92dd1d9f147b02e1eecfaadc8)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-x | bitbake/bin/bitbake-worker | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index db3c4b184f..8d043946cb 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -228,7 +228,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append | |||
228 | the_data = bb_cache.loadDataFull(fn, appends) | 228 | the_data = bb_cache.loadDataFull(fn, appends) |
229 | the_data.setVar('BB_TASKHASH', workerdata["runq_hash"][task]) | 229 | the_data.setVar('BB_TASKHASH', workerdata["runq_hash"][task]) |
230 | 230 | ||
231 | bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN", True), taskname.replace("do_", ""))) | 231 | bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) |
232 | 232 | ||
233 | # exported_vars() returns a generator which *cannot* be passed to os.environ.update() | 233 | # exported_vars() returns a generator which *cannot* be passed to os.environ.update() |
234 | # successfully. We also need to unset anything from the environment which shouldn't be there | 234 | # successfully. We also need to unset anything from the environment which shouldn't be there |
@@ -247,7 +247,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append | |||
247 | if task_exports: | 247 | if task_exports: |
248 | for e in task_exports.split(): | 248 | for e in task_exports.split(): |
249 | the_data.setVarFlag(e, 'export', '1') | 249 | the_data.setVarFlag(e, 'export', '1') |
250 | v = the_data.getVar(e, True) | 250 | v = the_data.getVar(e) |
251 | if v is not None: | 251 | if v is not None: |
252 | os.environ[e] = v | 252 | os.environ[e] = v |
253 | 253 | ||