[licensecheck] 01/01: Enhance detection of Perl license

dod at debian.org dod at debian.org
Tue Sep 6 12:00:33 UTC 2016


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

dod pushed a commit to branch master
in repository licensecheck.

commit 61f312dcd3da4fa87b56c5b6c09eafc95e6f58d1
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Sep 6 13:57:33 2016 +0200

    Enhance detection of Perl license
    
    Tweak the regexp to parse statement like:
    
    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.
    
    Note that the regexp accepts random order of "programming language
    system" words. We may need to add more later..
---
 lib/App/Licensecheck.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index 8bc87d5..d410c78 100644
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -548,7 +548,7 @@ sub parse_license
 		}
 	}
 	given ($licensetext) {
-		when ( /This program is free software; you can redistribute it and\/or modify it under the same terms as Perl itself/ ) {
+		when ( /This (program )?is free software; you can redistribute it and\/or modify it under the same terms as (the )?Perl( ?5)? (programming |language |system )*itself/ ) {
 			$license = "Perl $license";
 			push @spdx_license, 'Artistic', 'GPL';
 		}

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



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