diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-01-22 00:55:10 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 12:45:44 +0000 |
commit | 11a1f496304b5273a13dac0acb27815ecfcb8714 (patch) | |
tree | ac739be11c0c6013c3a0a0528e4761e0df5d3c1d /bitbake/lib/bb/cache.py | |
parent | 05c17750c3c2f62473c892d10b179a1c16f440ed (diff) | |
download | poky-11a1f496304b5273a13dac0acb27815ecfcb8714.tar.gz |
bitbake: 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 rev: 6c488afb0fe30a9655ec62a1d22f9f388365f012)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 10b0853a1d..83f2ff1561 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -214,7 +214,8 @@ class CoreRecipeInfo(RecipeInfoCommon): | |||
214 | rprovides += self.rprovides_pkg[package] | 214 | rprovides += self.rprovides_pkg[package] |
215 | 215 | ||
216 | for rprovide in rprovides: | 216 | for rprovide in rprovides: |
217 | cachedata.rproviders[rprovide].append(fn) | 217 | if fn not in cachedata.rproviders[rprovide]: |
218 | cachedata.rproviders[rprovide].append(fn) | ||
218 | 219 | ||
219 | for package in self.packages_dynamic: | 220 | for package in self.packages_dynamic: |
220 | cachedata.packages_dynamic[package].append(fn) | 221 | cachedata.packages_dynamic[package].append(fn) |