summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-17 17:44:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-19 15:19:14 +0000
commitc53e43f3c6a675c0934a7a4e358fd66b049ffca3 (patch)
tree33d80a887ca7639bb6ffffc8d1ff05db224f18fe
parent438986f4e39974930ee3205ca4c4d620090e57bb (diff)
downloadbitbake-contrib-c53e43f3c6a675c0934a7a4e358fd66b049ffca3.zip
bitbake-contrib-c53e43f3c6a675c0934a7a4e358fd66b049ffca3.tar.gz
bitbake-contrib-c53e43f3c6a675c0934a7a4e358fd66b049ffca3.tar.bz2
runqueue: Fix traceback when using -b
Without this, bitbake -b of image recipes cause tracebacks since the list of providers is empty. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/runqueue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index d42eb81..7e651a4 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -567,6 +567,8 @@ class RunQueueData:
for (depname, idependtask) in irdepends:
if depname in taskData[mc].run_targets:
# Won't be in run_targets if ASSUME_PROVIDED
+ if not taskData[mc].run_targets[depname]:
+ continue
depdata = taskData[mc].run_targets[depname][0]
if depdata is not None:
t = depdata + ":" + idependtask