diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 12:14:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 13:33:45 +0000 |
commit | 0c1bd6c6786b92303dfdd47265cb0f53163319c1 (patch) | |
tree | f6395521866e5d9a703fa457d422ad3a6fa133b0 /lib/bb/fetch2/__init__.py | |
parent | 3b72de69f1fb0d62203ad63e50c570a552132147 (diff) | |
download | bitbake-0c1bd6c6786b92303dfdd47265cb0f53163319c1.tar.gz |
bitbake/fetch2: Ensure failed fetch attempts are logged in the debug logs
(From Poky rev: ea70c4362fdb81bc9467975c145c48196c45e3af)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 2acd148ba..01bc36bd4 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -458,8 +458,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) @@ -899,7 +900,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) |