Skip to contentSkip to conversation

runqueue.py: Add provides to taskdepdata

PATCH New [email protected] 1 participant 1 message Aug 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqueue.py: Add provides to taskdepdata

From: Mariano Lopez <[email protected]>

Currently bitbake is the only one that knows the relation between PN and PROVIDES. In some cases it is needed to have this relation in the data store (the bootloader it's a good case).

This adds the PROVIDES to the taskdata, so it would be in the data store as one field of BB_TASKDEPDATA.

---
 lib/bb/runqueue.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/runqueue.py +2 -1
index 17a55d3..0f99e5a 100644
@@ -1630,7 +1630,8 @@ class RunQueueExecuteTasks(RunQueueExecute):
                 pn = self.rqdata.dataCache.pkg_fn[fn]
                 taskname = self.rqdata.runq_task[revdep]
                 deps = self.rqdata.runq_depends[revdep]
-                taskdepdata[revdep] = [pn, taskname, fn, deps]
+                provides = self.rqdata.dataCache.fn_provides[fn]
+                taskdepdata[revdep] = [pn, taskname, fn, deps, provides]
                 for revdep2 in deps:
                     if revdep2 not in taskdepdata:
                         additional.append(revdep2)
Signature · 1 line
1.8.4.5