summaryrefslogtreecommitdiffstats
path: root/debian/watch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/watch')
-rw-r--r--debian/watch5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/watch b/debian/watch
index 68f6e2b..d546b3f 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,4 @@
version=4
-opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/pytzdata-$1\.tar\.gz/ \
-https://github.com/sdispater/pytzdata/releases .*/v?(\d\S+)\.tar\.gz
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*@ARCHIVE_EXT@)%@PACKAGE@-$1%" \
+https://github.com/sdispater/pytzdata/tags \
+(?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@