[liblinear] 84/123: Rewrite watch version mangling logic

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Aug 26 03:42:12 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository liblinear.

commit 8c6527d2d3fa83ed56e2870337c7c66368713b8c
Author: Christian Kastner <debian at kvr.at>
Date:   Thu Apr 7 00:07:46 2011 +0200

    Rewrite watch version mangling logic
    
    The current version worked for local comparisons but produced bogus results
    with DEHS
---
 debian/watch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/watch b/debian/watch
index 51fa2af..345aa85 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,10 +1,10 @@
 version=3
 
 # Upstream's versioning scheme is 1.5, 1.51, 1.52, etc., so we mangle
-# both upstream and Debian version and add a trailing '0' to all single-digit
-# minor releases. eg: 1.52 -> 1.52, but 1.6 -> 1.60
+# it by adding a dot between minor release and revision, eg:
+# 1.8 -> 1.8, but 1.81 -> 1.8.1
 
 opts=\
-uversionmangle=s/1\.(\d)$/1\.${1}0/,\
-dversionmangle=s/\+dfsg//;s/1\.(\d)$/1\.${1}0/ \
+uversionmangle=s/(\d)\.(\d)(\d)/$1.$2.$3/,\
+dversionmangle=s/\+dfsg// \
 http://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/liblinear-(.*)\.zip

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/liblinear.git



More information about the debian-science-commits mailing list