From 5ad9ee9f5bd9518833c9df381a3115f5592744af Mon Sep 17 00:00:00 2001 From: Stefano Rivera <stefanor@ubuntu.com> Date: Fri, 31 Dec 2010 21:08:01 +0200 Subject: [PATCH] SourcPackage.pull() should raise DownloadError instead of returning False --- ubuntutools/archive.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ubuntutools/archive.py b/ubuntutools/archive.py index a0dd0a6..b3822da 100644 --- a/ubuntutools/archive.py +++ b/ubuntutools/archive.py @@ -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"