[SCM] Debian packaging of dh-make-perl branch, master, updated. debian/0.76-1-42-gf21a54b

Damyan Ivanov dmn at debian.org
Tue May 21 20:41:13 UTC 2013


The following commit has been merged in the master branch:
commit f21a54b8a64578817d5e2036eef2ae4518361575
Author: Damyan Ivanov <dmn at debian.org>
Date:   Tue May 21 23:39:34 2013 +0300

    drop mangling versions like 2.003004 into 2.3.4
    
    this partially reverts 385451609f5af2ace92c3838133dd4ed2c605608 see there
    for the reasoning back in 2010 (TODO is interesting)
    
    the fix seems to cause more problems than it solves. matching cpan-version
    to debian version is dark area

diff --git a/lib/DhMakePerl/Command/Packaging.pm b/lib/DhMakePerl/Command/Packaging.pm
index bc72f3d..feba52d 100644
--- a/lib/DhMakePerl/Command/Packaging.pm
+++ b/lib/DhMakePerl/Command/Packaging.pm
@@ -305,10 +305,6 @@ sub sanitize_version {
     return undef unless defined($ver);
 
     $ver =~ s/^v//;
-    $ver =~ s/\.(\d\d\d)(\d\d\d)/.$1.$2/;    # 2.003004 -> 2.003.004
-    $ver =~ s/\.0+(?=\d)/./g;                # 2.003.004 -> 2.3.4
-                                             # but avoid 2.0 -> 2.
-                                             #  or 2.0test -> 2.test
     $ver =~ s/[^-.+a-zA-Z0-9]+/-/g;
     $ver = "0$ver" unless $ver =~ /^\d/;
 

-- 
Debian packaging of dh-make-perl



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