summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache_extra.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-02-02 14:05:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-02 16:55:28 +0000
commita95445cf7b2fdb3a3434e04e0d06a748c58fe527 (patch)
treeb112b48b455d3af0d8fdb45c7cc81794dd6a38ec /bitbake/lib/bb/cache_extra.py
parent8d4d9a15c4947e55ed217c6035e76fcff724e544 (diff)
downloadpoky-a95445cf7b2fdb3a3434e04e0d06a748c58fe527.tar.gz
bitbake: Add description into the cache and clean up cache duplication
With the addition of new cache domains, the summary, license and section information is no longer requred in the core cache since its only used by the hob UI. This patch removes the duplicated entries. It also adds the DESCRIPTION field to the cache for the benefit of hob2. (Bitbake rev: 33ffb2e99825cb643b148b3462c2d4cf33ff5f58) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache_extra.py')
-rw-r--r--bitbake/lib/bb/cache_extra.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cache_extra.py b/bitbake/lib/bb/cache_extra.py
index 4c8841f857..40ba304c43 100644
--- a/bitbake/lib/bb/cache_extra.py
+++ b/bitbake/lib/bb/cache_extra.py
@@ -40,6 +40,7 @@ class HobRecipeInfo(RecipeInfoCommon):
40 self.summary = self.getvar('SUMMARY', metadata) 40 self.summary = self.getvar('SUMMARY', metadata)
41 self.license = self.getvar('LICENSE', metadata) 41 self.license = self.getvar('LICENSE', metadata)
42 self.section = self.getvar('SECTION', metadata) 42 self.section = self.getvar('SECTION', metadata)
43 self.description = self.getvar('DESCRIPTION', metadata)
43 44
44 @classmethod 45 @classmethod
45 def init_cacheData(cls, cachedata): 46 def init_cacheData(cls, cachedata):
@@ -47,8 +48,10 @@ class HobRecipeInfo(RecipeInfoCommon):
47 cachedata.summary = {} 48 cachedata.summary = {}
48 cachedata.license = {} 49 cachedata.license = {}
49 cachedata.section = {} 50 cachedata.section = {}
51 cachedata.description = {}
50 52
51 def add_cacheData(self, cachedata, fn): 53 def add_cacheData(self, cachedata, fn):
52 cachedata.summary[fn] = self.summary 54 cachedata.summary[fn] = self.summary
53 cachedata.license[fn] = self.license 55 cachedata.license[fn] = self.license
54 cachedata.section[fn] = self.section 56 cachedata.section[fn] = self.section
57 cachedata.description[fn] = self.description