From b5e9c70edf52acd2c3a003b71d62a37bbcae3098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=84=9D=EC=A7=80=EC=98=81/=EC=B1=85=EC=9E=84=EC=97=B0?= =?UTF-8?q?=EA=B5=AC=EC=9B=90/SW=EA=B3=B5=ED=95=99=28=EC=97=B0=29Open=20So?= =?UTF-8?q?urce=20TP?= Date: Fri, 5 Sep 2025 15:12:00 +0900 Subject: [PATCH] Add is_manifest_file field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 석지영/책임연구원/SW공학(연)Open Source TP --- src/fosslight_source/_parsing_scancode_file_item.py | 4 ++-- src/fosslight_source/_scan_item.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fosslight_source/_parsing_scancode_file_item.py b/src/fosslight_source/_parsing_scancode_file_item.py index 6d01686..670353d 100755 --- a/src/fosslight_source/_parsing_scancode_file_item.py +++ b/src/fosslight_source/_parsing_scancode_file_item.py @@ -193,7 +193,7 @@ def parsing_scancode_32_earlier(scancode_file_list: list, has_error: bool = Fals result_item.licenses = license_detected if is_manifest_file(file_path): - result_item.is_license_text = True + result_item.is_manifest_file = True # Remove copyright info for license text file of GPL family if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text): @@ -308,7 +308,7 @@ def parsing_scancode_32_later( result_item.is_license_text = file.get("percentage_of_license_text", 0) > 90 or is_notice_file(file_path) if is_manifest_file(file_path) and len(license_detected) > 0: - result_item.is_license_text = True + result_item.is_manifest_file = True # Remove copyright info for license text file of GPL family if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text): diff --git a/src/fosslight_source/_scan_item.py b/src/fosslight_source/_scan_item.py index 8fe42e0..022f843 100644 --- a/src/fosslight_source/_scan_item.py +++ b/src/fosslight_source/_scan_item.py @@ -34,6 +34,7 @@ def __init__(self, value: str) -> None: super().__init__("") self.source_name_or_path = value self.is_license_text = False + self.is_manifest_file = False self.license_reference = "" self.scanoss_reference = {} self.matched_lines = "" # Only for SCANOSS results