SourcPackage.pull() should raise DownloadError instead of returning False

This commit is contained in:
Stefano Rivera 2010-12-31 21:08:01 +02:00
parent c52f0965e7
commit 5ad9ee9f5b

View File

@ -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"