diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 12:04:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 13:33:10 +0000 |
commit | 6f13c23f200d9261169fc25cde4911d639a7275e (patch) | |
tree | bef300f186a1bd6d64cb4e52930d58ef44635242 | |
parent | 2cc4a1a8679610ea9dda99159691577019eed2c5 (diff) | |
download | bitbake-6f13c23f200d9261169fc25cde4911d639a7275e.tar.gz |
bitbake/fetch2: Pass over malformatted (empty) mirror url lines
(From Poky rev: 20ab1cb0ca10b0c7724f2154fe5b54c939b8a887)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 |