[OE-core] [PATCH] cooker: use in instead of count

Burton, Ross ross.burton at intel.com
Thu Dec 10 15:25:34 UTC 2015


Whoops, wrong list, and lame commit message.

Ross

On 10 December 2015 at 15:24, Ross Burton <ross.burton at intel.com> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151210/e5cd7662/attachment-0002.html>


More information about the Openembedded-core mailing list