cache.py: check existence before add to cachedata.rproviders
cover cache.py: check existence before add to cachedata.rproviders
The following changes since commit b80219eac1695044554c18994124ae32c04642c6:
udev: Add 2 patches to support 4.4 kernel (2016-01-20 17:07:16 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/cache
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/cache
Robert Yang (1):
cache.py: check existence before add to cachedata.rproviders
bitbake/lib/bb/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
PATCH 1/1 cache.py: check existence before add to cachedata.rproviders
The rprovides maybe contain duplicated lines when parse again, we need check it before add to cachedata.rproviders, similar to what we had done to cachedata.providers.
Signed-off-by Robert Yang <[email protected]>
--- bitbake/lib/bb/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/lib/bb/cache.py +2 -1
@@ -214,7 +214,8 @@ class CoreRecipeInfo(RecipeInfoCommon): rprovides += self.rprovides_pkg[package] for rprovide in rprovides: - cachedata.rproviders[rprovide].append(fn) + if fn not in cachedata.rproviders[rprovide]: + cachedata.rproviders[rprovide].append(fn) for package in self.packages_dynamic: cachedata.packages_dynamic[package].append(fn)
Signature · 1 line
1.7.9.5