* [PATCH] fetch2: fix fetcher looping due to self-referential entries
@ 2012-09-07 13:18 Paul Eggleton
2012-09-07 13:31 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2012-09-07 13:18 UTC (permalink / raw)
To: bitbake-devel
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@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:
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] fetch2: fix fetcher looping due to self-referential entries
2012-09-07 13:18 [PATCH] fetch2: fix fetcher looping due to self-referential entries Paul Eggleton
@ 2012-09-07 13:31 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2012-09-07 13:31 UTC (permalink / raw)
To: bitbake-devel
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-07 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 13:18 [PATCH] fetch2: fix fetcher looping due to self-referential entries Paul Eggleton
2012-09-07 13:31 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.