summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-11 12:48:14 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-11 12:48:14 +0000
commitc02e38901b56af3a0ad03b023d04bada008bae5a (patch)
treea8f40e21a986afcb34d46988ef39c751f201e26b
parent72327cb0707e190b982b569082929cd85be6b1c6 (diff)
downloadpoky-c02e38901b56af3a0ad03b023d04bada008bae5a.tar.gz
git.py: Improve command failure error messages
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/fetch/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 911c5e437f..6e4e67c40f 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -139,7 +139,10 @@ class Git(Fetch):
139 else: 139 else:
140 username = "" 140 username = ""
141 141
142 output = runfetchcmd("git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch), d, True) 142 cmd = "git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch)
143 output = runfetchcmd(cmd, d, True)
144 if not output:
145 raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))
143 return output.split()[0] 146 return output.split()[0]
144 147
145 def _build_revision(self, url, ud, d): 148 def _build_revision(self, url, ud, d):