[oe-commits] [bitbake] branch master-next updated: build.py: Don't return dependencies for tasks which don't exist
git at git.openembedded.org
git at git.openembedded.org
Tue Dec 19 15:26:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
The following commit(s) were added to refs/heads/master-next by this push:
new b7a81cb build.py: Don't return dependencies for tasks which don't exist
b7a81cb is described below
commit b7a81cb91e82ba64b63c9153dc161a2ab4696715
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Dec 19 12:38:20 2017 +0000
build.py: Don't return dependencies for tasks which don't exist
If for example you deltask do_build but it has recrdeps set, its confusing
to have that list returned when the task no longer exists (same would apply
to deps too if it was set after the deltask).
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/build.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 0d0100a..4631abd 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -872,6 +872,12 @@ def preceedtask(task, with_recrdeptasks, d):
that this may lead to the task itself being listed.
"""
preceed = set()
+
+ # Ignore tasks which don't exist
+ tasks = d.getVar('__BBTASKS', False)
+ if task not in tasks:
+ return preceed
+
preceed.update(d.getVarFlag(task, 'deps') or [])
if with_recrdeptasks:
recrdeptask = d.getVarFlag(task, 'recrdeptask')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list