[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#626454: [PATCH] do not tag MPL-2.0 with copyright-should-refer-to-common-license-file-for-gpl



The MPL-2.0 contains the following paragraph:
 1.12. "Secondary License"
     means either the GNU General Public License, Version 2.0, the GNU
     Lesser General Public License, Version 2.1, the GNU Affero General
     Public License, Version 3.0, or any later versions of those
     licenses.

This, of course, matches "m/GNU General Public License/i or m/\bGPL\b/"
and gets the copyright-should-refer-to-common-license-file-for-gpl tag,
even when the copyright never ever mentiones the GPL directly.

Let's add the "means either..." phrase to the list of known false-positives.

Ref: #626454
---
 checks/copyright-file |    1 +
 1 file changed, 1 insertion(+)

diff --git a/checks/copyright-file b/checks/copyright-file
index 51cb61f..6ae188e 100644
--- a/checks/copyright-file
+++ b/checks/copyright-file
@@ -208,6 +208,7 @@ if (m,/usr/share/common-licenses,
     || m/compatible\s+with\s+(?:the\s+)?(?:GNU\s+)?GPL/
     || m/(?:GNU\s+)?GPL\W+compatible/
     || m/was\s+previously\s+(?:distributed\s+)?under\s+the\s+GNU/
+    || m/means\s+either\s+the\s+GNU\s+General\s+Public\s+License/
     || $wrong_directory_detected) {
     # False positive or correct reference.  Ignore.
 } elsif (m/GNU Free Documentation License/i or m/\bGFDL\b/) {
-- 
1.7.10.4


Reply to: