]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: fetch2/git: log exception if ls-remote fails
authorRoss Burton <ross.burton@intel.com>
Tue, 27 Mar 2018 10:21:58 +0000 (11:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Mar 2018 11:51:52 +0000 (12:51 +0100)
(Bitbake rev: 8212446de11c0e370c55f88cde86334b760cd939)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/git.py

index 35e0db56cfff7d38d5ce788a00e0aa3a6c968220..3de83bed173527952c67f870f03cf01a4139fd6e 100644 (file)
@@ -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 = ""