]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cache.py: fix bitbake -s command
authorScott Garman <scott.a.garman@intel.com>
Thu, 9 Jun 2011 18:13:06 +0000 (11:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jun 2011 21:18:16 +0000 (22:18 +0100)
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].

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/cache.py

index a0df93eb411dab9c373053876abf9b7b061093aa..d4a16ad7691ca7eaf4b4c949fe379d1706678850 100644 (file)
@@ -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