Skip to contentSkip to conversation

cache.py: fix bitbake -s command

PATCH Applied Scott Garman 2 participants 2 messages Jun 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cache.py: fix bitbake -s command

This uses the correct index of self.pn when setting up cachedata's pkg_pn, fixing the output of bitbake -s.

This fixes bug [YOCTO #1149].

---
 lib/bb/cache.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/cache.py +1 -1
index a0df93e..d4a16ad 100644
@@ -179,7 +179,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
     def add_cacheData(self, cachedata, fn):
         cachedata.task_deps[fn] = self.task_deps
         cachedata.pkg_fn[fn] = self.pn
-        cachedata.pkg_pn[self].append(fn)
+        cachedata.pkg_pn[self.pn].append(fn)
         cachedata.pkg_pepvpr[fn] = (self.pe, self.pv, self.pr)
         cachedata.pkg_dp[fn] = self.defaultpref
         cachedata.stamp[fn] = self.stamp
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 9 lines · Scott Garman

This uses the correct index of self.pn when setting up cachedata's pkg_pn, fixing the output of bitbake -s.

This fixes bug [YOCTO #1149].

---
 lib/bb/cache.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, good catch thanks!

Richard