[licensecheck] 14/26: Fix don't choke on unspecificed BSD license.
Jonas Smedegaard
dr at jones.dk
Sun Feb 5 10:12:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository licensecheck.
commit 99ebbed7dcc53f490fc9193d2373f8e0bd20bdd0
Author: Jonas Smedegaard <dr at jones.dk>
Date: Wed Jan 4 19:25:03 2017 +0100
Fix don't choke on unspecificed BSD license.
---
lib/App/Licensecheck.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index f13b1f5..109361f 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -641,9 +641,12 @@ sub parse_license
}
}
}
- elsif ( $licensetext =~ /licen[sc]e:? ?bsd(?:-(\d)-clause)?/i ) {
+ elsif ( $licensetext =~ /licen[sc]e:? ?bsd-(\d)-clause/i ) {
$gen_license->("bsd_${1}_clause");
}
+ elsif ( $licensetext =~ /licen[sc]e:? ?bsd\b/i ) {
+ $gen_license->('bsd');
+ }
# Artistic
given ($licensetext) {
--
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