summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 17:27:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:32 +0100
commitee0ef7d13c81f3c8f6aa7eb317b8cdaa8e3682f7 (patch)
tree7dcffe74a340c1a343b1aa91c3a27b50ef048b03 /bitbake
parent4c1f65431165004cdd883220d1249ba28f5d92df (diff)
downloadpoky-ee0ef7d13c81f3c8f6aa7eb317b8cdaa8e3682f7.tar.gz
bitbake: 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. (Bitbake rev: f93a77f2f188e18de9e3d812e86d77c2f3c71889) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 701ef1d700..7d2ff818eb 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -697,6 +697,9 @@ class RunQueueData:
697 seendeps.add(t) 697 seendeps.add(t)
698 newdeps.add(t) 698 newdeps.add(t)
699 for i in newdeps: 699 for i in newdeps:
700 if i not in self.runtaskentries:
701 # Not all recipes might have the recrdeptask task as a task
702 continue
700 task = self.runtaskentries[i].task 703 task = self.runtaskentries[i].task
701 for n in self.runtaskentries[i].depends: 704 for n in self.runtaskentries[i].depends:
702 if n not in seendeps: 705 if n not in seendeps: