[bitbake-devel] [PATCH 2/5] runqueue: Fix traceback when using -b

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jan 19 16:13:21 UTC 2017


Without this, bitbake -b of image recipes cause tracebacks since
the list of providers is empty.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.7.4




More information about the bitbake-devel mailing list