[licensecheck] 46/112: Fix detect license MPL-2.0 (was misdetected as MPL-2.0 or AGPL).

Jonas Smedegaard dr at jones.dk
Fri Nov 25 22:01:49 UTC 2016


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

js pushed a commit to branch master
in repository licensecheck.

commit 1681fc017a6897bd5ffd8a48467d729bee8628f8
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Nov 21 21:07:00 2016 +0100

    Fix detect license MPL-2.0 (was misdetected as MPL-2.0 or AGPL).
---
 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 1affa44..454d396 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -539,7 +539,7 @@ sub parse_license
 			break;
 		}
 		# exclude MPL-2.0 license
-		when ( /means either [^.]+, the GNU Affero General Public License/i ) {
+		when ( /means either ([^.]+$L{re}{version_number})+, the GNU Affero General Public License/i ) {
 			break;
 		}
 		when ( /AFFERO GENERAL PUBLIC LICENSE(?:,? $L{re}{version}{-keep}(,? $L{re}{version_later_postfix})?)?/i ) {

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