The following commit has been merged in the master branch:
commit 230b3a794a6b7d223b2b2dffae5f9f45ed0f2c5f
Author: Ville Skyttä <[email protected]>
Date: Sun Dec 18 23:41:33 2011 +0200
Fix version output for GPL notices without "as published by".
Signed-off-by: James McCoy <[email protected]>
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 3a0634a..9ab1b59 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -392,7 +392,7 @@ sub parselicense($) {
$licensetext =~ /GNU (?:Affero )?General Public License as published by
the Free Software Foundation; version ([^ ]+) /i) {
$gplver = " (v$1)";
- } elsif ($licensetext =~ /GNU (Affero ?)General Public License, version
([^ ]+?)[ .]/) {
+ } elsif ($licensetext =~ /GNU (?:Affero ?)General Public License, version
([^ ]+?)[ .]/) {
$gplver = " (v$1)";
} elsif ($licensetext =~ /either version ([^ ]+) of the License, or \(at
your option\) any later version/) {
$gplver = " (v$1 or later)";
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].