Skip to content

Commit c072ba4

Browse files
authored
Merge pull request #215 from fosslight/manifest
Add is_manifest_file field
2 parents dbec835 + b5e9c70 commit c072ba4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/fosslight_source/_parsing_scancode_file_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def parsing_scancode_32_earlier(scancode_file_list: list, has_error: bool = Fals
193193
result_item.licenses = license_detected
194194

195195
if is_manifest_file(file_path):
196-
result_item.is_license_text = True
196+
result_item.is_manifest_file = True
197197

198198
# Remove copyright info for license text file of GPL family
199199
if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text):
@@ -308,7 +308,7 @@ def parsing_scancode_32_later(
308308
result_item.is_license_text = file.get("percentage_of_license_text", 0) > 90 or is_notice_file(file_path)
309309

310310
if is_manifest_file(file_path) and len(license_detected) > 0:
311-
result_item.is_license_text = True
311+
result_item.is_manifest_file = True
312312

313313
# Remove copyright info for license text file of GPL family
314314
if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text):

src/fosslight_source/_scan_item.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __init__(self, value: str) -> None:
3434
super().__init__("")
3535
self.source_name_or_path = value
3636
self.is_license_text = False
37+
self.is_manifest_file = False
3738
self.license_reference = ""
3839
self.scanoss_reference = {}
3940
self.matched_lines = "" # Only for SCANOSS results

0 commit comments

Comments
 (0)