fetch2: fix fetcher looping due to self-referential entries
PATCH 1/1 fetch2: fix fetcher looping due to self-referential entries
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 <[email protected]>
--- bitbake/lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+)
bitbake/lib/bb/fetch2/__init__.py +1 -0
@@ -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:
Signature · 1 line
1.7.9.5
Quoted 15 lines · 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 <[email protected]>--- bitbake/lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/bitbake/lib/bb/fetch2/__init__.pyindex 12ebce2..a90249f 100644
bitbake/lib/bb/fetch2/__init__.py def encodeurl(decoded): · line 184
Quoted 7 lines
bitbake/lib/bb/fetch2/__init__.py +1
-0@@ -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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre