diff options
author | Ross Burton <ross.burton@intel.com> | 2018-03-27 11:21:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-28 12:51:46 +0100 |
commit | 8212446de11c0e370c55f88cde86334b760cd939 (patch) | |
tree | 3619e6d99925e75489a7a731b54a9cf5d47ea5a4 /lib/bb/fetch2 | |
parent | 21098de09ee2f7a9f0b3f895bf2ffbdeb8c9ded5 (diff) | |
download | bitbake-8212446de11c0e370c55f88cde86334b760cd939.tar.gz |
fetch2/git: log exception if ls-remote fails
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2')
-rw-r--r-- | lib/bb/fetch2/git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 35e0db56c..3de83bed1 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -595,7 +595,8 @@ class Git(FetchMethod): tagregex = re.compile(d.getVar('UPSTREAM_CHECK_GITTAGREGEX') or "(?P<pver>([0-9][\.|_]?)+)") try: output = self._lsremote(ud, d, "refs/tags/*") - except bb.fetch2.FetchError or bb.fetch2.NetworkAccess: + except (bb.fetch2.FetchError, bb.fetch2.NetworkAccess) as e: + bb.note("Could not list remote: %s" % str(e)) return pupver verstring = "" |