[oe-commits] [bitbake] 01/02: runqueue: Allow recrdeptask not to exist for all recipes

git at git.openembedded.org git at git.openembedded.org
Thu Apr 6 11:40:29 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.

commit f93a77f2f188e18de9e3d812e86d77c2f3c71889
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Apr 5 17:27:40 2017 +0100

    runqueue: Allow recrdeptask not to exist for all recipes
    
    Currently if you specify a recrdeptask, it must exist for all recipes or
    you get a python traceback. This is a bug and it should be possible to have
    recipes which don't have the specified task.
    
    As well as preventing such a traceback (which shouldn't happen, it should be
    a user readable error), this allows us to fix issues in OE-Core which would
    otherwise trigger the traceback.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 701ef1d..7d2ff81 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -697,6 +697,9 @@ class RunQueueData:
                 seendeps.add(t)
                 newdeps.add(t)
                 for i in newdeps:
+                    if i not in self.runtaskentries:
+                        # Not all recipes might have the recrdeptask task as a task
+                        continue
                     task = self.runtaskentries[i].task
                     for n in self.runtaskentries[i].depends:
                         if n not in seendeps:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list