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:
parent
0e83229b12
commit
3d4273716d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue