[libcatmandu-perl] 09/11: Simplify version mangling to compare each digit (not stuff trailing zeros), and add comment documenting it.

Jonas Smedegaard dr at jones.dk
Sat May 17 09:12:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcatmandu-perl.

commit 200818d77751beb04ec338bb698442377b1a13a6
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Fri May 16 20:33:50 2014 +0200

    Simplify version mangling to compare each digit (not stuff trailing zeros), and add comment documenting it.
---
 debian/watch | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/watch b/debian/watch
index 050e541..e15aed8 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,4 @@
+# compare versions by each digit: upstream strip trailing zeros
 version = 3
-opts=versionmangle=s/\d\.\d$/$&000/;s/\d\.\d\d$/$&00/ \
+opts=versionmangle=s/\d\K(?=\d)/./g \
 https://metacpan.org/release/Catmandu   .*/Catmandu-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list