[libconfig-model-dpkg-perl] 09/11: (c) scanner: cleanup "by" and "all rights reserved" from copyrights

dod at debian.org dod at debian.org
Fri Mar 20 16:25:54 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 72a8f198162d183ad9fb37c1cf5ae380be27b178
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Mar 20 12:42:48 2015 +0100

    (c) scanner: cleanup "by" and "all rights reserved" from copyrights
---
 lib/Dpkg/Copyright/Scanner.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 70f63e3..acadfae 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -104,6 +104,8 @@ sub scan_files ( %args ) {
         $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/\s+by\s+//g;
+        $c =~ s/all\s+rights?\s+reserved//gi;
         $c = 'no-info-found' if $c =~ /^\*No/;
 
         $c =  __pack_copyright($c);

-- 
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