[OE-core] [PATCH] cooker: use in instead of count
Ross Burton
ross.burton at intel.com
Thu Dec 10 15:24:20 UTC 2015
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
bitbake/lib/bb/cooker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4df8881..d39c64b 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1072,7 +1072,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
--
2.1.4
More information about the Openembedded-core
mailing list