Skip to content

Commit b89c1f2

Browse files
Fix #4513: Correct JCalendar LGPL false positive and add regression test
1 parent 7dbb3c7 commit b89c1f2

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

src/licensedcode/data/rules/gpl-2.0-plus_60.RULE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ notes: there are some confusing references to both LGPL and GPL
66
---
77

88
This program is free software; you can redistribute it and/or modify
9-
it under the terms of the GNU General Public License as published by
9+
it under the terms of the {{GNU General Public License}} as published by
1010
the Free Software Foundation; either version 2 of the License, or
1111
(at your option) any later version.
1212

1313
This program is distributed in the hope that it will be useful,
1414
but WITHOUT ANY WARRANTY; without even the implied warranty of
1515
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
GNU General Public License for more details.
16+
{{GNU General Public License}} for more details.
1717

18-
You should have received a copy of the GNU Library Public License
18+
You should have received a copy of the {{GNU Library Public License}}
1919
along with this program; if not, write to the Free Software
2020
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
license_expression: lgpl-2.0-plus
3+
is_license_notice: yes
4+
relevance: 100
5+
notes: Matches a common variant where Lesser and version 2 are mixed up
6+
---
7+
8+
This program is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU Lesser General Public License
10+
as published by the Free Software Foundation; either version 2
11+
of the License, or (at your option) any later version.
12+
13+
This program is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General Public License
19+
along with this program; if not, write to the Free Software
20+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This program is free software; you can redistribute it and/or
2+
modify it under the terms of the GNU Lesser General Public License
3+
as published by the Free Software Foundation; either version 2
4+
of the License, or (at your option) any later version.
5+
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU Lesser General Public License for more details.
10+
11+
You should have received a copy of the GNU Lesser General Public License
12+
along with this program; if not, write to the Free Software
13+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
license_expressions:
2+
- lgpl-2.0-plus
3+

0 commit comments

Comments
 (0)