[bitbake-devel] [PATCH] fetch2: fix fetcher looping due to self-referential entries

Paul Eggleton paul.eggleton at linux.intel.com
Fri Sep 7 13:31:34 UTC 2012


On Friday 07 September 2012 14:18:11 Paul Eggleton wrote:
> Ensure that if all a MIRRORS entry does is add a slash, this does not
> result in a circular loop.
> 
> Fixes [YOCTO #3073].
> 
> Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> ---
>  bitbake/lib/bb/fetch2/__init__.py |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/bitbake/lib/bb/fetch2/__init__.py
> b/bitbake/lib/bb/fetch2/__init__.py index 12ebce2..a90249f 100644
> --- a/bitbake/lib/bb/fetch2/__init__.py
> +++ b/bitbake/lib/bb/fetch2/__init__.py
> @@ -178,6 +178,7 @@ def encodeurl(decoded):
>          url += "@"
>      if host and type != "file":
>          url += "%s" % host
> +    path = path.replace("//", "/")
>      url += "%s" % urllib.quote(path)
>      if p:
>          for parm in p:

Actually I'll tweak this a bit with a different shortlog, ignore this.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the bitbake-devel mailing list