[poky] Fetcher2 problems break parsing

Richard Purdie richard.purdie at linuxfoundation.org
Tue Feb 1 16:09:49 PST 2011


On Tue, 2011-02-01 at 15:34 +0100, Koen Kooi wrote:
> Op 1 feb 2011, om 14:07 heeft Koen Kooi het volgende geschreven:
> 
> > Hi,
> > 
> > Since a few days I'm getting this on recipes using SRCPV:
> > 
[...]
> > 
> > This seems to happen when no SRCREV is set, is that the intended behaviour?
> 
> RP gave me this patch to try:
> 
> koen at dominion:/OE/tentacle/sources/openembedded$ git diff
> diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
> index 9fe4eb2..d62ba81 100644
> --- a/bitbake/lib/bb/fetch2/__init__.py
> +++ b/bitbake/lib/bb/fetch2/__init__.py
> @@ -864,7 +864,7 @@ class Fetch(object):
>          if uselocalcount:
>              count = Fetch.localcount_internal_helper(ud, d)
>          if count is None:
> -            count = localcounts[key + '_count']
> +            count = localcounts[key + '_count'] or "0"
>  
>          if last_rev == latest_rev:
>              return str(count + "+" + latest_rev)
> 
> 
> and that seems to work.

Its not intended and this patch has been merged into master.

Cheers,

Richard




More information about the poky mailing list