summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-08 17:30:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-08 17:30:45 +0000
commitaa45760702e874977454778659c205b29d1ff049 (patch)
tree8c0b4fa74e65c63f4c86319594422cc455a47ff5 /bitbake/lib/bb/fetch2
parentee1a9c0476cc4b2ce9dfb0faa29a1371a8517c40 (diff)
downloadpoky-aa45760702e874977454778659c205b29d1ff049.tar.gz
bitbake/fetch2: Ignore UnboundLocalError in exception handler in try_mirror
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-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