diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-16 13:01:51 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:40 +0000 |
commit | 9c7c18d06fcee628a847ad696be596383e168378 (patch) | |
tree | ebac0af68e5fdbf6d573e96bad7d9326f3463970 /bitbake/lib/bb/cache.py | |
parent | 3a2176fe7383278503dcf732d98e10c520b29935 (diff) | |
download | poky-9c7c18d06fcee628a847ad696be596383e168378.tar.gz |
Pre-explode rundeps/runrecs in CacheData
(Bitbake rev: 0c8e0f3191252ccedb83c431c48e5c7d905e2717)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 51eb3b82f7..9756ada960 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -440,16 +440,18 @@ class Cache: | |||
440 | if not file_name in cacheData.runrecs: | 440 | if not file_name in cacheData.runrecs: |
441 | cacheData.runrecs[file_name] = {} | 441 | cacheData.runrecs[file_name] = {} |
442 | 442 | ||
443 | rdepends = self.getVar('RDEPENDS', file_name, True) or "" | 443 | rdepends = bb.utils.explode_deps(self.getVar('RDEPENDS', file_name, True) or "") |
444 | rrecommends = self.getVar('RRECOMMENDS', file_name, True) or "" | 444 | rrecommends = bb.utils.explode_deps(self.getVar('RRECOMMENDS', file_name, True) or "") |
445 | for package in packages + [pn]: | 445 | for package in packages + [pn]: |
446 | if not package in cacheData.rundeps[file_name]: | 446 | if not package in cacheData.rundeps[file_name]: |
447 | cacheData.rundeps[file_name][package] = [] | 447 | cacheData.rundeps[file_name][package] = [] |
448 | if not package in cacheData.runrecs[file_name]: | 448 | if not package in cacheData.runrecs[file_name]: |
449 | cacheData.runrecs[file_name][package] = [] | 449 | cacheData.runrecs[file_name][package] = [] |
450 | 450 | ||
451 | cacheData.rundeps[file_name][package] = rdepends + " " + (self.getVar("RDEPENDS_%s" % package, file_name, True) or "") | 451 | rdeps_pkg = bb.utils.explode_deps(self.getVar('RDEPENDS_%s' % package, file_name, True) or "") |
452 | cacheData.runrecs[file_name][package] = rrecommends + " " + (self.getVar("RRECOMMENDS_%s" % package, file_name, True) or "") | 452 | cacheData.rundeps[file_name][package] = rdepends + rdeps_pkg |
453 | rrecs_pkg = bb.utils.explode_deps(self.getVar('RDEPENDS_%s' % package, file_name, True) or "") | ||
454 | cacheData.runrecs[file_name][package] = rrecommends + rrecs_pkg | ||
453 | 455 | ||
454 | # Collect files we may need for possible world-dep | 456 | # Collect files we may need for possible world-dep |
455 | # calculations | 457 | # calculations |