diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2015-05-13 11:24:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-14 18:04:37 +0100 |
commit | 9f2115b07a55cb14e4a74dc6fbd3707c28a234d0 (patch) | |
tree | 3296fbc7d00ebde972ecad85d386e0bfa0b3642e /lib/bb/fetch2/git.py | |
parent | b7bcef141b56fe8eb03724ea5251e3251fc63817 (diff) | |
download | openembedded-core-contrib-9f2115b07a55cb14e4a74dc6fbd3707c28a234d0.tar.gz |
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]
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-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 4cc5811937..2643cda786 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -355,7 +355,8 @@ class Git(FetchMethod): for l in output.split('\n'): if s in l: return l.split()[0] - raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output" % ud.unresolvedrev[name]) + raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \ + (ud.unresolvedrev[name], ud.host+ud.path)) def latest_versionstring(self, ud, d): """ |