aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-27 11:21:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-28 12:51:46 +0100
commit8212446de11c0e370c55f88cde86334b760cd939 (patch)
tree3619e6d99925e75489a7a731b54a9cf5d47ea5a4
parent21098de09ee2f7a9f0b3f895bf2ffbdeb8c9ded5 (diff)
downloadbitbake-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>
-rw-r--r--lib/bb/fetch2/git.py3
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 = ""