summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-01-07 12:57:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-24 15:54:51 +0000
commita13304e1c6500db95823961a5a34849db46037e3 (patch)
treed895bf66c3b3bd656985d4098437b8cbd7bfe1d2 /bitbake/lib/bb/cooker.py
parent3c1a3b0724d5175e81ec81cce448d5b618d21958 (diff)
downloadpoky-a13304e1c6500db95823961a5a34849db46037e3.tar.gz
bitbake/[cooker|cache]: cache summary, license and group. Add to targets tree
Add summary, license and group metadata to RecipeInfo and the cache. Unfortunately this impacts parse speed but gives us a much richer set of metadata to expose through UI's which can be accessed via the generateTargetsTree command. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f0d40a0673..1a05a312b4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -491,10 +491,16 @@ class BBCooker:
491 fn = taskdata.fn_index[fnid] 491 fn = taskdata.fn_index[fnid]
492 pn = self.status.pkg_fn[fn] 492 pn = self.status.pkg_fn[fn]
493 version = "%s:%s-%s" % self.status.pkg_pepvpr[fn] 493 version = "%s:%s-%s" % self.status.pkg_pepvpr[fn]
494 summary = self.status.summary[fn]
495 license = self.status.license[fn]
496 section = self.status.section[fn]
494 if pn not in target_tree["pn"]: 497 if pn not in target_tree["pn"]:
495 target_tree["pn"][pn] = {} 498 target_tree["pn"][pn] = {}
496 target_tree["pn"][pn]["filename"] = fn 499 target_tree["pn"][pn]["filename"] = fn
497 target_tree["pn"][pn]["version"] = version 500 target_tree["pn"][pn]["version"] = version
501 target_tree["pn"][pn]["summary"] = summary
502 target_tree["pn"][pn]["license"] = license
503 target_tree["pn"][pn]["section"] = section
498 if fnid not in seen_fnids: 504 if fnid not in seen_fnids:
499 seen_fnids.append(fnid) 505 seen_fnids.append(fnid)
500 packages = [] 506 packages = []