[bitbake-devel] [PATCH] fetch2: fix fetcher looping due to self-referential entries
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Sep 7 13:18:11 UTC 2012
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:
--
1.7.9.5
More information about the bitbake-devel
mailing list