diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-01-18 19:25:35 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-01-18 22:07:47 +0100 |
commit | d8d2347bdd45074f8f194265d948b50108d22051 (patch) | |
tree | 21d42a3d5ebb7ac384305688f9f4b012398ea6d8 /git-import-dscs | |
parent | f2f03b79db00f04e5fe2f3db0307eda419373ec8 (diff) |
git-import-dscs: Ignore debsnap download errors
to cope with binNMUs. Based on a patch from Jonathan Nieder.
Closes: #610376
Diffstat (limited to 'git-import-dscs')
-rwxr-xr-x | git-import-dscs | 10 |
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: |