[oe-commits] [bitbake] 02/05: cooker: check if target contains task
git at git.openembedded.org
git at git.openembedded.org
Wed Sep 14 21:43:19 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 33c1eba7598f2b021041cfb0a9dfd402e69aedc2
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Sep 9 17:49:00 2016 +0300
cooker: check if target contains task
Task name was incorrectly added to the targets that already
contained :task suffix and fired with BuildInit event. This
caused Toaster to create incorrect Target objects and show
them in UI.
[YOCTO #10221]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 0e78106..b6726d7 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1421,7 +1421,8 @@ class BBCooker:
if not task.startswith("do_"):
task = "do_%s" % task
- packages = ["%s:%s" % (target, task) for target in targets]
+ packages = [target if ':' in target else '%s:%s' (target, task) for target in targets]
+
bb.event.fire(bb.event.BuildInit(packages), self.expanded_data)
taskdata, runlist = self.buildTaskData(targets, task, self.configuration.abort)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list