Skip to contentSkip to conversation

cache.py: check existence before add to cachedata.rproviders

PATCH New Robert Yang 1 participant 2 messages Jan 22, 2016

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

---
 bitbake/lib/bb/cache.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/lib/bb/cache.py +2 -1
index 10b0853..83f2ff1 100644
@@ -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