[libconfig-model-dpkg-perl] 09/27: Copyright::Scanner: remove spaces in copyright ranges of years

dod at debian.org dod at debian.org
Mon Jan 12 07:09:47 UTC 2015


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit cd3a60670a264c30f26601dc3d4e7c4a87c0f455
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Dec 27 18:43:50 2014 +0100

    Copyright::Scanner: remove spaces in copyright ranges of years
---
 lib/Dpkg/Copyright/Scanner.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 21c93e8..c411c44 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -81,6 +81,7 @@ sub scan_files {
         $c =~ s/'//g;
         $c =~ s/^©\s*//;
         $c =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;
+        $c =~ s/(\d+)\s*-\s*(\d+)/$1-$2/g;
         $c =~ s/\b(\d{4}),?\s+([\S^\d])/$1, $2/g;
 
         my $a = $copyrights{$c}{$l} //= $id++;

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



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