Fix the error message on a download failure.

This commit is contained in:
Chris Johns 2012-10-31 13:34:49 +11:00
parent 52604491d3
commit f107171e4f

View File

@ -178,7 +178,7 @@ class build:
if not os.path.isfile(local): if not os.path.isfile(local):
raise error.general('source is not a file: ' + local) raise error.general('source is not a file: ' + local)
return return
raise error.general('downloading %s: all paths have failed, giving up', url) raise error.general('downloading %s: all paths have failed, giving up' % (url))
def parse_url(self, url, pathkey): def parse_url(self, url, pathkey):
# #