aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix+debian@gueux.org>2016-12-14 12:03:02 +0100
committerFélix Sipma <felix+debian@gueux.org>2016-12-14 12:42:00 +0100
commitce5c5c36111f3c7a99da3225c7d99620d44a8cc2 (patch)
treeeded945d71ebbd42fef745bc0edfc14acfa97e7a
parentf63c8d040e95ad7acbae87fd419d324df855442b (diff)
update debian watch (repack)
-rw-r--r--debian/watch9
1 files changed, 5 insertions, 4 deletions
diff --git a/debian/watch b/debian/watch
index bccce55..9bce81d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,5 @@
-version=3
-
-opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/restic-$1\.tar\.gz/ \
- https://github.com/restic/restic/tags .*/v?(\d\S*)\.tar\.gz
+# run "uscan --report" to check or "gpb import-orig --uscan" to update
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%restic-$1.tar.gz%,dversionmangle=s/~dfsg\d*$//,repacksuffix=~dfsg" \
+ https://github.com/restic/restic/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian