Skip to content

Commit 471ccc2

Browse files
committed
Adjust licenses and rules post-merge
Use correct function names Remove duplicated license Remove duplicated rules Update failed merges Adjust and rename rules as needed Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 0d8151b commit 471ccc2

10 files changed

+12
-101
lines changed

src/licensedcode/data/licenses/samba-dco-1.0.LICENSE

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
license_expression: apache-2.0
3-
<<<<<<< HEAD
43
is_license_tag: yes
54
ignorable_urls:
65
- http://www.apache.org/licenses/LICENSE-2.0.txt
@@ -10,10 +9,4 @@ ignorable_urls:
109
<license>
1110
<name>{{Apache License, version 2.0}}</name>
1211
<url>{{ http://www.apache.org/licenses/LICENSE-2.0.txt }}</url>
13-
=======
14-
is_license_notice: yes
15-
relevance: 100
16-
---
1712

18-
library under The Apache Licence, version 2.0
19-
>>>>>>> refs/remotes/upstream/develop
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
---
22
license_expression: apache-2.0
3-
<<<<<<< HEAD
43
is_license_tag: yes
54
ignorable_urls:
65
- http://www.apache.org/licenses/LICENSE-2.0.txt
76
---
87

98
<name>{{Apache License, version 2.0}}</name>
109
<url>{{ http://www.apache.org/licenses/LICENSE-2.0.txt }}</url>
11-
=======
12-
is_license_notice: yes
13-
relevance: 100
14-
---
1510

16-
under the terms of the Apache Licence, Version 2.0
17-
>>>>>>> refs/remotes/upstream/develop
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
---
22
license_expression: gpl-2.0
33
is_license_reference: yes
4-
<<<<<<< HEAD
54
is_deprecated: yes
6-
=======
75
is_required_phrase: yes
8-
>>>>>>> refs/remotes/upstream/develop
96
relevance: 100
107
replaced_by:
118
- gpl-2.0
129
---
1310

14-
GNU General Public License v2
11+
GNU General Public License v2
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
---
22
license_expression: lgpl-3.0
33
is_license_reference: yes
4-
<<<<<<< HEAD
54
is_deprecated: yes
6-
=======
75
is_required_phrase: yes
8-
>>>>>>> refs/remotes/upstream/develop
96
relevance: 100
107
replaced_by:
118
- lgpl-3.0
129
---
1310

14-
licenses.nuget.org/LGPL-3.0-only
11+
licenses.nuget.org/LGPL-3.0-only
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
11
---
22
license_expression: lgpl-3.0
3-
<<<<<<< HEAD
43
is_license_tag: yes
54
is_continuous: yes
65
relevance: 100
76
---
87

98
{{ SPDX-LicenseIdentifier: LGPL-3.0-only }}
10-
=======
11-
is_license_notice: yes
12-
---
139

14-
This library is free software; you can redistribute it and/or
15-
modify it under the terms of the {{GNU Lesser General Public
16-
License as published by the Free Software Foundation version
17-
3.0 of the License.}}
18-
19-
This library is distributed in the hope that it will be useful,
20-
but WITHOUT ANY WARRANTY; without even the implied warranty of
21-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22-
Lesser General Public License for more details.
23-
24-
You should have received a copy of the GNU Lesser General Public
25-
License along with this library; if not, write to the Free Software
26-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27-
>>>>>>> refs/remotes/upstream/develop
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
license_expression: samba-dc-1.0
3+
is_license_reference: yes
4+
relevance: 100
5+
---
6+
7+
"Samba Developer's Declaration, Version 1.0"

src/licensedcode/data/rules/samba-dco-1.0_and_dco-1.1_and_cc-by-sa-4.0_1.RULE renamed to src/licensedcode/data/rules/samba-dc-1.0_and_dco-1.1_and_cc-by-sa-4.0_1.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
license_expression: samba-dco-1.0 AND dco-1.1 AND cc-by-sa-4.0
2+
license_expression: samba-dc-1.0 AND dco-1.1 AND cc-by-sa-4.0
33
is_license_notice: yes
44
notes: this is a license of license, hence we treat it as a mere clue
55
ignorable_copyrights:

src/licensedcode/data/rules/samba-dco-1.0_1.RULE

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/licensedcode/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,8 +2339,8 @@ def _set_continuous(self):
23392339
):
23402340
self.is_continuous = True
23412341

2342-
def build_key_phrase_spans(self):
2343-
"""rules_data_dir
2342+
def build_required_phrase_spans(self):
2343+
"""
23442344
Return a list of Spans marking key phrases token positions of that must
23452345
be present for this rule to be matched.
23462346
"""

0 commit comments

Comments
 (0)