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>
This commit is contained in:
Ross Burton authored and Richard Purdie committed 2016-01-08 13:58:08 +00:00
1 parent 0e83229b12
commit 3d4273716d
1 file changed
+1 -1
+1 -1
View File
@@ -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