[libconfig-model-dpkg-perl] 10/27: Copyright::Scanner: remove beginnig of (any) sentence after copyright statement

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 6736572ed5a6ea0b9740dd5dc4c7e89b09313abd
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Dec 27 17:03:43 2014 +0100

    Copyright::Scanner: remove beginnig of (any) sentence after copyright statement
---
 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 c411c44..a5ea836 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -83,6 +83,7 @@ sub scan_files {
         $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;
+        $c =~ s/\.[\w\s]+$/./;
 
         my $a = $copyrights{$c}{$l} //= $id++;
         # split file path and fill recursive hash, leaf is 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