mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-28 09:11:38 +00:00
SourcPackage.pull() should raise DownloadError instead of returning False
This commit is contained in:
parent
c52f0965e7
commit
5ad9ee9f5b
@ -303,8 +303,7 @@ class SourcePackage(object):
|
|||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
Logger.normal('URL Error: %s', e.reason)
|
Logger.normal('URL Error: %s', e.reason)
|
||||||
else:
|
else:
|
||||||
return False
|
raise DownloadError('File %s could not be found' % name)
|
||||||
return True
|
|
||||||
|
|
||||||
def unpack(self, destdir=None):
|
def unpack(self, destdir=None):
|
||||||
"Unpack in workdir"
|
"Unpack in workdir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user