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-11 12:04:59 +0000 |
commit | 20ab1cb0ca10b0c7724f2154fe5b54c939b8a887 (patch) | |
tree | 8a14fac0263d44508479907eb30ea705e5ba0d52 | |
parent | 96aeec41bcc1f34f124dc8d8326ccacfc145106e (diff) | |
download | poky-20ab1cb0ca10b0c7724f2154fe5b54c939b8a887.tar.gz |
bitbake/fetch2: Pass over malformatted (empty) mirror url lines
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
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): | |||
409 | mirrors is the list of mirrors we're going to try | 409 | mirrors is the list of mirrors we're going to try |
410 | """ | 410 | """ |
411 | ld = d.createCopy() | 411 | ld = d.createCopy() |
412 | for (find, replace) in mirrors: | 412 | for line in mirrors: |
413 | try: | ||
414 | (find, replace) = line | ||
415 | except ValueError: | ||
416 | continue | ||
413 | newuri = uri_replace(origud, find, replace, ld) | 417 | newuri = uri_replace(origud, find, replace, ld) |
414 | if newuri == origud.url: | 418 | if newuri == origud.url: |
415 | continue | 419 | continue |