summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@debian.org>2017-07-02 14:18:26 +0000
committerJelmer Vernooij <jelmer@debian.org>2017-07-02 14:18:26 +0000
commita94784a8d129e1a001d91851cf937eb1942bef1d (patch)
tree6434dcbdbcc1db960d65040eca79cf259882a08c
parenteb235c63f58621b59b6ddd4fcabd37357309ada7 (diff)
debian/watch: properly handle RC releases.
-rw-r--r--debian/changelog1
-rw-r--r--debian/watch7
2 files changed, 3 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 3d6fc4f..be96ca2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ defusedxml (0.4.1-3) UNRELEASED; urgency=medium
* Bump standards version (no changes).
* Bump debhelper version to 9.
* Refresh upstream signing key (new subkeys).
+ * debian/watch: properly handle RC releases.
-- Ondřej Nový <novy@ondrej.org> Tue, 29 Mar 2016 21:25:39 +0200
diff --git a/debian/watch b/debian/watch
index 2335561..3ac3c65 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,6 +1,3 @@
-# watch control file for uscan
version=3
-opts=pgpsigurlmangle=s/$/.asc/,filenamemangle=s/.*\/([^\/]+)#.+$/$1/ \
- https://pypi.python.org/pypi/defusedxml/ \
- .*/defusedxml-(.+)\.tar\.gz(?:#.*)? \
- debian
+opts=pgpsigurlmangle=s/$/.asc/,uversionmangle=s/(\d)[_\.\-\+]?((rc)\d*)$/$1~$2/ \
+ https://pypi.debian.net/defusedxml/defusedxml-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))