Skip to content

Commit 7d5c647

Browse files
Add unknown license reference to package dereferencing #2965 #1379
There are unknown license statements like "This file is the same license as the package django" which refers to a package which this file is a part of. This is fixed by extending the dereferencing logic to look for packages that the file belongs to and using the detected licenses from the package. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 02ab56c commit 7d5c647

File tree

71 files changed

+14768
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+14768
-232
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This file is distributed under the same license as the Puppet automation framework package.
1+
This file is distributed under the same license as the {{Puppet}} {{automation}} framework package.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
license_expression: apache-2.0
22
is_license_notice: yes
33
relevance: 100
4+
referenced_filenames:
5+
- package
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
This file is distributed under the same license as the
2-
debian files of the p11-kit package.
2+
{{debian}} files of the {{p11-kit}} package.

src/licensedcode/data/rules/bsd-new_1043.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ license_expression: bsd-new
22
is_license_notice: yes
33
relevance: 100
44
minimum_coverage: 100
5+
referenced_filenames:
6+
-package
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
License: same-as-rest-of-p11kit
2-
This file is distributed under the same license as the p11-kit package.
1+
License: {{same-as-rest-of-p11kit}}
2+
This file is distributed under the same license as the {{p11-kit}} package.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
license_expression: bsd-new
22
is_license_notice: yes
33
minimum_coverage: 100
4+
referenced_filenames:
5+
- package
6+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file is distributed under the same license as the p11-kit
2+
package.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
license_expression: bsd-new
2+
is_license_reference: yes
3+
relevance: 80
4+
minimum_coverage: 100
5+
referenced_filenames:
6+
- package
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is distributed under the same license as the package.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
license_expression: free-unknown
2+
is_license_reference: yes
3+
is_continuous: yes
4+
relevance: 100
5+
minimum_coverage: 100
6+
referenced_filenames:
7+
- package

0 commit comments

Comments
 (0)