summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index b9e145a62b..de2c6520e9 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -451,8 +451,9 @@ def try_mirrors(d, origud, mirrors, check = False):
451 os.symlink(ud.localpath, origud.localpath) 451 os.symlink(ud.localpath, origud.localpath)
452 return ud.localpath 452 return ud.localpath
453 453
454 except bb.fetch2.BBFetchException: 454 except bb.fetch2.BBFetchException as e:
455 logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url)) 455 logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
456 logger.debug(1, str(e))
456 try: 457 try:
457 if os.path.isfile(ud.localpath): 458 if os.path.isfile(ud.localpath):
458 bb.utils.remove(ud.localpath) 459 bb.utils.remove(ud.localpath)
@@ -894,7 +895,8 @@ class Fetch(object):
894 m.build_mirror_data(u, ud, self.d) 895 m.build_mirror_data(u, ud, self.d)
895 localpath = ud.localpath 896 localpath = ud.localpath
896 897
897 except BBFetchException: 898 except BBFetchException as e:
899 logger.debug(1, str(e))
898 # Remove any incomplete fetch 900 # Remove any incomplete fetch
899 if os.path.isfile(ud.localpath): 901 if os.path.isfile(ud.localpath):
900 bb.utils.remove(ud.localpath) 902 bb.utils.remove(ud.localpath)