aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-12-09 11:49:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 13:58:08 +0000
commit3d4273716d6b6c2be2b2de774fd86dc6997eb95a (patch)
tree0721c17f95885165b7a750a9155bf18457cf7612 /bitbake
parent0e83229b12351857f4f316e6929350cc8980e094 (diff)
downloadopenembedded-core-contrib-3d4273716d6b6c2be2b2de774fd86dc6997eb95a.tar.gz
bitbake: cooker: use in instead of count
No point counting all instances when we just want to know if there's any or not. (Bitbake rev: 3369072efb653339da8dbd1ca864ff8e1ff899ca) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index edceca00ed..8592d234a3 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1080,7 +1080,7 @@ class BBCooker:
for pfn in self.recipecache.pkg_fn:
inherits = self.recipecache.inherits.get(pfn, None)
- if inherits and inherits.count(klass) > 0:
+ if inherits and klass in inherits:
pkg_list.append(self.recipecache.pkg_fn[pfn])
return pkg_list