Package: git-buildpackage
Version: 0.5.17

Hi,

Trying out this neat import-dscs --debsnap tool.

$ git import-dscs --debsnap libwpd
gbp:info: Downloading snapshots of 'libwpd' to '/tmp/tmpB42AOI'...
debsnap: No source files found for libwpd version 0.8.4-2+b2
debsnap: No source files found for libwpd version 0.8.4-2+b1
debsnap: No source files found for libwpd version 0.8.3-3+b1
gbp:error: debsnap returned 2
gbp:error: Couldn't run 'debsnap --force --destdir=/tmp/tmpB42AOI libwpd'

The following does not succeed in working around it, alas.  Thoughts?

Thanks for git import-dscs.  I am looking forward to the day it can
trawl ancient debian-devel-changes@ archives and bug report logs to
make manual history mining obsolete. :)

---
diff --git a/git-import-dscs b/git-import-dscs
index 369d7f7..9f54f83 100755
--- a/git-import-dscs
+++ b/git-import-dscs
@@ -53,7 +53,10 @@ 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])()
+    try:
+        gbpc.Command("debsnap", [ '--force', '--destdir=%s' % (downloaddir), 
pkg])()
+    except gbpc.CommandExecFailed:
+        pass # ignore it.
 
     dscs = glob.glob(os.path.join(downloaddir, '*.dsc'))
     if not dscs:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to