[oe-commits] [bitbake] branch 1.32 updated: runqueue.py: Remove redundant whitelist checks
git at git.openembedded.org
git at git.openembedded.org
Tue Oct 11 22:44:41 UTC 2016
rpurdie pushed a commit to branch 1.32
in repository bitbake.
The following commit(s) were added to refs/heads/1.32 by this push:
new f65e631 runqueue.py: Remove redundant whitelist checks
f65e631 is described below
commit f65e631ab6705dfd9188f19ee423eca33bca7d7d
Author: Randy Witt <randy.e.witt at linux.intel.com>
AuthorDate: Tue Oct 11 15:36:19 2016 -0700
runqueue.py: Remove redundant whitelist checks
The whitelist checks for BB_SETSCENE_ENFORCE were running for every call
to execute(). Since the task list doesn't change for each call into
execute, the checks only need to be ran once.
[YOCTO #10369]
Signed-off-by: Randy Witt <randy.e.witt at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/runqueue.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 1306263..84b2685 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -265,6 +265,7 @@ class RunQueueData:
self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST", True) or ""
self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split()
self.setscenewhitelist = get_setscene_enforce_whitelist(cfgData)
+ self.setscenewhitelist_checked = False
self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter()
self.reset()
@@ -1701,7 +1702,9 @@ class RunQueueExecuteTasks(RunQueueExecute):
Run the tasks in a queue prepared by rqdata.prepare()
"""
- if self.rqdata.setscenewhitelist:
+ if self.rqdata.setscenewhitelist and not self.rqdata.setscenewhitelist_checked:
+ self.rqdata.setscenewhitelist_checked = True
+
# Check tasks that are going to run against the whitelist
def check_norun_task(tid, showerror=False):
(mc, fn, taskname, _) = split_tid_mcfn(tid)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list