From 20ab1cb0ca10b0c7724f2154fe5b54c939b8a887 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Feb 2011 12:04:59 +0000 Subject: bitbake/fetch2: Pass over malformatted (empty) mirror url lines Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 1ec42717ff..d168cdff6b 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -409,7 +409,11 @@ def try_mirrors(d, origud, mirrors, check = False): mirrors is the list of mirrors we're going to try """ ld = d.createCopy() - for (find, replace) in mirrors: + for line in mirrors: + try: + (find, replace) = line + except ValueError: + continue newuri = uri_replace(origud, find, replace, ld) if newuri == origud.url: continue -- cgit v1.2.3-54-g00ecf