mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-15 04:11:07 +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:
|
||||
Logger.normal('URL Error: %s', e.reason)
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
raise DownloadError('File %s could not be found' % name)
|
||||
|
||||
def unpack(self, destdir=None):
|
||||
"Unpack in workdir"
|
||||
|
Loading…
x
Reference in New Issue
Block a user