Skip to content

Commit e2dd50b

Browse files
authored
Merge pull request #64 from fosslight/correct
Modify exclude item not to compare for correct mode
2 parents 180a7ef + 92c9726 commit e2dd50b

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)