Skip to content

Commit 92c9726

Browse files
committed
Modify exclude item not to compare for correctmode
Signed-off-by: Jiyeong Seok <[email protected]>
1 parent 180a7ef commit 92c9726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_scanner/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def correct_scanner_result(_output_dir, output_files, output_extension, exist_sr
218218
for src_item in src_oss_list:
219219
dup_bin = ''
220220
for idx, bin_item in enumerate(bin_oss_list):
221-
if not src_item.source_name_or_path:
221+
if (not src_item.source_name_or_path) or src_item.exclude or bin_item.exclude:
222222
continue
223223
if src_item.source_name_or_path[0] == bin_item.source_name_or_path[0]:
224224
dup_bin = copy.deepcopy(bin_item)

0 commit comments

Comments
 (0)