[bitbake-devel] [PATCH 2/2] cooker: fix undefined dep in generatePkgDepTreeData

Andy Voltz andy.voltz at timesys.com
Thu May 18 16:09:11 UTC 2017


The loop for populating the depends of the tree data should use dep
instead of item.

Signed-off-by: Andy Voltz <andy.voltz at timesys.com>
---
 lib/bb/cooker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index bc8574a..8846690 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -905,13 +905,13 @@ class BBCooker:
                 seen_fns.append(taskfn)
 
                 depend_tree["depends"][pn] = []
-                for item in taskdata[mc].depids[taskfn]:
+                for dep in taskdata[mc].depids[taskfn]:
                     pn_provider = ""
                     if dep in taskdata[mc].build_targets and taskdata[mc].build_targets[dep]:
                         fn_provider = taskdata[mc].build_targets[dep][0]
                         pn_provider = self.recipecaches[mc].pkg_fn[fn_provider]
                     else:
-                        pn_provider = item
+                        pn_provider = dep
                     pn_provider = self.add_mc_prefix(mc, pn_provider)
                     depend_tree["depends"][pn].append(pn_provider)
 
-- 
2.1.4




More information about the bitbake-devel mailing list