aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-import-dscs
diff options
context:
space:
mode:
Diffstat (limited to 'git-import-dscs')
-rwxr-xr-xgit-import-dscs10
1 files changed, 9 insertions, 1 deletions
diff --git a/git-import-dscs b/git-import-dscs
index 369d7f75..87a020ed 100755
--- a/git-import-dscs
+++ b/git-import-dscs
@@ -53,7 +53,15 @@ def fetch_snapshots(pkg, downloaddir):
dscs = None
gbp.log.info("Downloading snapshots of '%s' to '%s'..." % (pkg, downloaddir))
- gbpc.Command("debsnap", [ '--force', '--destdir=%s' % (downloaddir), pkg])()
+ debsnap = gbpc.Command("debsnap", [ '--force', '--destdir=%s' % (downloaddir), pkg])
+ try:
+ debsnap()
+ except gbpc.CommandExecFailed:
+ if debsnap.retcode == 2:
+ gbp.log.warn("Some packages failed to download. Continuing.")
+ pass
+ else:
+ raise
dscs = glob.glob(os.path.join(downloaddir, '*.dsc'))
if not dscs: