From patchwork Fri Sep 7 13:18:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] fetch2: fix fetcher looping due to self-referential entries Date: Fri, 07 Sep 2012 13:18:11 -0000 From: Paul Eggleton X-Patchwork-Id: 36119 Message-Id: <1347023891-9237-1-git-send-email-paul.eggleton@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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 --- 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: