diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index dd45ae8173..fafa518911 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -481,6 +481,19 @@ class BBCooker: | |||
481 | depend_tree["pn"][pn] = {} | 481 | depend_tree["pn"][pn] = {} |
482 | depend_tree["pn"][pn]["filename"] = fn | 482 | depend_tree["pn"][pn]["filename"] = fn |
483 | depend_tree["pn"][pn]["version"] = version | 483 | depend_tree["pn"][pn]["version"] = version |
484 | |||
485 | # if we have extra caches, list all attributes they bring in | ||
486 | extra_info = [] | ||
487 | for cache_class in self.caches_array: | ||
488 | if type(cache_class) is type and issubclass(cache_class, bb.cache.RecipeInfoCommon) and hasattr(cache_class, 'cachefields'): | ||
489 | cachefields = getattr(cache_class, 'cachefields', []) | ||
490 | extra_info = extra_info + cachefields | ||
491 | |||
492 | # for all attributes stored, add them to the dependency tree | ||
493 | for ei in extra_info: | ||
494 | depend_tree["pn"][pn][ei] = vars(self.recipecache)[ei][fn] | ||
495 | |||
496 | |||
484 | for dep in rq.rqdata.runq_depends[task]: | 497 | for dep in rq.rqdata.runq_depends[task]: |
485 | depfn = taskdata.fn_index[rq.rqdata.runq_fnid[dep]] | 498 | depfn = taskdata.fn_index[rq.rqdata.runq_fnid[dep]] |
486 | deppn = self.recipecache.pkg_fn[depfn] | 499 | deppn = self.recipecache.pkg_fn[depfn] |
@@ -543,35 +556,30 @@ class BBCooker: | |||
543 | depend_tree["rdepends-pkg"] = {} | 556 | depend_tree["rdepends-pkg"] = {} |
544 | depend_tree["rrecs-pkg"] = {} | 557 | depend_tree["rrecs-pkg"] = {} |
545 | 558 | ||
559 | # if we have extra caches, list all attributes they bring in | ||
560 | extra_info = [] | ||
561 | for cache_class in self.caches_array: | ||
562 | if type(cache_class) is type and issubclass(cache_class, bb.cache.RecipeInfoCommon) and hasattr(cache_class, 'cachefields'): | ||
563 | cachefields = getattr(cache_class, 'cachefields', []) | ||
564 | extra_info = extra_info + cachefields | ||
565 | |||
546 | for task in xrange(len(tasks_fnid)): | 566 | for task in xrange(len(tasks_fnid)): |
547 | fnid = tasks_fnid[task] | 567 | fnid = tasks_fnid[task] |
548 | fn = taskdata.fn_index[fnid] | 568 | fn = taskdata.fn_index[fnid] |
549 | pn = self.recipecache.pkg_fn[fn] | 569 | pn = self.recipecache.pkg_fn[fn] |
550 | version = "%s:%s-%s" % self.recipecache.pkg_pepvpr[fn] | 570 | |
551 | summary = self.recipecache.summary[fn] | ||
552 | lic = self.recipecache.license[fn] | ||
553 | section = self.recipecache.section[fn] | ||
554 | description = self.recipecache.description[fn] | ||
555 | homepage = self.recipecache.homepage[fn] | ||
556 | bugtracker = self.recipecache.bugtracker[fn] | ||
557 | files_info = self.recipecache.files_info[fn] | ||
558 | rdepends = self.recipecache.rundeps[fn] | ||
559 | rrecs = self.recipecache.runrecs[fn] | ||
560 | prevision = self.recipecache.prevision[fn] | ||
561 | inherits = self.recipecache.inherits.get(fn, None) | ||
562 | if pn not in depend_tree["pn"]: | 571 | if pn not in depend_tree["pn"]: |
563 | depend_tree["pn"][pn] = {} | 572 | depend_tree["pn"][pn] = {} |
564 | depend_tree["pn"][pn]["filename"] = fn | 573 | depend_tree["pn"][pn]["filename"] = fn |
574 | version = "%s:%s-%s" % self.recipecache.pkg_pepvpr[fn] | ||
565 | depend_tree["pn"][pn]["version"] = version | 575 | depend_tree["pn"][pn]["version"] = version |
566 | depend_tree["pn"][pn]["summary"] = summary | 576 | rdepends = self.recipecache.rundeps[fn] |
567 | depend_tree["pn"][pn]["license"] = lic | 577 | rrecs = self.recipecache.runrecs[fn] |
568 | depend_tree["pn"][pn]["section"] = section | 578 | depend_tree["pn"][pn]["inherits"] = self.recipecache.inherits.get(fn, None) |
569 | depend_tree["pn"][pn]["description"] = description | 579 | |
570 | depend_tree["pn"][pn]["inherits"] = inherits | 580 | # for all extra attributes stored, add them to the dependency tree |
571 | depend_tree["pn"][pn]["homepage"] = homepage | 581 | for ei in extra_info: |
572 | depend_tree["pn"][pn]["bugtracker"] = bugtracker | 582 | depend_tree["pn"][pn][ei] = vars(self.recipecache)[ei][fn] |
573 | depend_tree["pn"][pn]["files_info"] = files_info | ||
574 | depend_tree["pn"][pn]["revision"] = prevision | ||
575 | 583 | ||
576 | if fnid not in seen_fnids: | 584 | if fnid not in seen_fnids: |
577 | seen_fnids.append(fnid) | 585 | seen_fnids.append(fnid) |