aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 12:14:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 12:14:20 +0000
commitea70c4362fdb81bc9467975c145c48196c45e3af (patch)
treed56f6e3f1e03c89d73654a31e3cf464b5a507ee0 /bitbake/lib
parent7f30131faaa5e3fdb1191c9da95c5683cefafeb5 (diff)
downloadopenembedded-core-contrib-ea70c4362fdb81bc9467975c145c48196c45e3af.tar.gz
bitbake/fetch2: Ensure failed fetch attempts are logged in the debug logs
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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 b9e145a62ba..de2c6520e9c 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):
os.symlink(ud.localpath, origud.localpath)
return ud.localpath
- except bb.fetch2.BBFetchException:
+ except bb.fetch2.BBFetchException as e:
logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
+ logger.debug(1, str(e))
try:
if os.path.isfile(ud.localpath):
bb.utils.remove(ud.localpath)
@@ -894,7 +895,8 @@ class Fetch(object):
m.build_mirror_data(u, ud, self.d)
localpath = ud.localpath
- except BBFetchException:
+ except BBFetchException as e:
+ logger.debug(1, str(e))
# Remove any incomplete fetch
if os.path.isfile(ud.localpath):
bb.utils.remove(ud.localpath)