diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index f4bed0315..b168fdc3c 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -416,7 +416,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 |