summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-05-13 11:24:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 17:45:00 +0100
commitc41b5b6fc3462cd3b1d8946ec1852b5dac7438e9 (patch)
tree32c7847654dd002ef1469b783a0a6225d0e1c4f0 /bitbake/lib/bb/fetch2/git.py
parent2a56445b9bb46357187425def7adc9ddc240b60a (diff)
downloadpoky-c41b5b6fc3462cd3b1d8946ec1852b5dac7438e9.tar.gz
bitbake: bitbake: fetch2/git: Add URL when latest_revision generates an exception.
The URL is not sent when _latest_revision generates and exception. When performing the sanity checks it is not possible to know the URI that failed. This add the URL when latest_revision generates an exception. [YOCTO: #7592] (Bitbake rev: 9f2115b07a55cb14e4a74dc6fbd3707c28a234d0) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 4cc5811937..2643cda786 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -355,7 +355,8 @@ class Git(FetchMethod):
355 for l in output.split('\n'): 355 for l in output.split('\n'):
356 if s in l: 356 if s in l:
357 return l.split()[0] 357 return l.split()[0]
358 raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output" % ud.unresolvedrev[name]) 358 raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \
359 (ud.unresolvedrev[name], ud.host+ud.path))
359 360
360 def latest_versionstring(self, ud, d): 361 def latest_versionstring(self, ud, d):
361 """ 362 """