From 8212446de11c0e370c55f88cde86334b760cd939 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 27 Mar 2018 11:21:58 +0100 Subject: fetch2/git: log exception if ls-remote fails Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- lib/bb/fetch2/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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([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 = "" -- cgit 1.2.3-korg