summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 8e35f5487e..ee3476bcc8 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -448,8 +448,11 @@ def try_mirrors(d, origud, mirrors, check = False):
448 448
449 except bb.fetch2.BBFetchException: 449 except bb.fetch2.BBFetchException:
450 logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url)) 450 logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
451 if os.path.isfile(ud.localpath): 451 try:
452 bb.utils.remove(ud.localpath) 452 if os.path.isfile(ud.localpath):
453 bb.utils.remove(ud.localpath)
454 except UnboundLocalError:
455 pass
453 continue 456 continue
454 return None 457 return None
455 458