diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 13341a894a..798a29b363 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -462,9 +462,18 @@ def build_mirroruris(origud, mirrors, ld): | |||
462 | newuri = uri_replace(ud, find, replace, ld) | 462 | newuri = uri_replace(ud, find, replace, ld) |
463 | if not newuri or newuri in uris or newuri == origud.url: | 463 | if not newuri or newuri in uris or newuri == origud.url: |
464 | continue | 464 | continue |
465 | try: | ||
466 | newud = FetchData(newuri, ld) | ||
467 | newud.setup_localpath(ld) | ||
468 | except bb.fetch2.BBFetchException as e: | ||
469 | logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url)) | ||
470 | logger.debug(1, str(e)) | ||
471 | try: | ||
472 | ud.method.clean(ud, ld) | ||
473 | except UnboundLocalError: | ||
474 | pass | ||
475 | continue | ||
465 | uris.append(newuri) | 476 | uris.append(newuri) |
466 | newud = FetchData(newuri, ld) | ||
467 | newud.setup_localpath(ld) | ||
468 | uds.append(newud) | 477 | uds.append(newud) |
469 | 478 | ||
470 | adduri(newuri, newud, uris, uds) | 479 | adduri(newuri, newud, uris, uds) |