Skip to content

Commit a83a15b

Browse files
committed
Exclude untracked oss pkg info files
1 parent a627bc9 commit a83a15b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fosslight_prechecker/_result.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def result_for_summary(path_to_find, oss_pkg_info_files, license_missing_files,
288288
license_missing_files, copyright_missing_files = exclude_file_in_yaml(path_to_find, oss_yaml_files,
289289
set(license_missing_files) - set(oss_pkg_info_files),
290290
set(copyright_missing_files) - set(oss_pkg_info_files))
291+
# Subtract excluded files(untracked or ignored file)
292+
oss_pkg_info_files = list(set(oss_pkg_info_files) - set(exclude_files))
291293

292294
if len(license_missing_files) == 0 and len(copyright_missing_files) == 0:
293295
prechecker_compliant = True

0 commit comments

Comments
 (0)