[med-svn] [python-cobra] 05/07: Add uversionmangle to d/watch
Afif Elghraoui
afif at moszumanska.debian.org
Wed Mar 9 06:16:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
afif pushed a commit to branch master
in repository python-cobra.
commit c938c226f719ad696976158da1ada1669993c302
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Tue Mar 8 22:02:52 2016 -0800
Add uversionmangle to d/watch
This helps so that alpha/beta versions are considered less
than the final release, avoiding the workaround needed for
the 0.4.0 release for future similar versions.
---
debian/watch | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/watch b/debian/watch
index ee7aa56..90bb419 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,5 @@
version=3
-opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]*)\.tar\.gz/python-cobra-$1.tar.gz/" \
- https://github.com/opencobra/cobrapy/releases (?:.*/)?v?(\d[\d\.]*[ab][\d])\.tar\.gz
+opts="uversionmangle=s/(a|b)(\d)$/\~$1$2/,filenamemangle=s/(?:.*\/)v?(\d[\d\.]*[ab]?[\d]?)\.tar\.gz/python\-cobra\-$1.tar.gz/" \
+ https://github.com/opencobra/cobrapy/releases \
+ (?:.*/)?v?(\d[\d\.]*[ab]?[\d]?)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-cobra.git
More information about the debian-med-commit
mailing list