Skip to content

Commit

Permalink
Replace variable for removing OSS Package file
Browse files Browse the repository at this point in the history
  • Loading branch information
soimkim committed Jul 15, 2022
1 parent 98b0bed commit 73884c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fosslight_reuse/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,10 @@ def result_for_summary(path_to_find, oss_pkg_info_files, license_missing_files,
if oss_pkg_info_files:
pkg_info_yaml_files = find_all_oss_pkg_files(path_to_find, oss_pkg_info_files)
yaml_file = get_only_pkg_info_yaml_file(pkg_info_yaml_files)
# Remove OSS Package files from missing files
pkg_info_yaml_files = [os.path.relpath(pkg_file, path_to_find) for pkg_file in pkg_info_yaml_files]
# Exclude files in yaml
license_missing_files, copyright_missing_files = exclude_file_in_yaml(path_to_find, yaml_file,
set(license_missing_files) - set(pkg_info_yaml_files),
set(copyright_missing_files) - set(pkg_info_yaml_files))
set(license_missing_files) - set(oss_pkg_info_files),
set(copyright_missing_files) - set(oss_pkg_info_files))

if len(license_missing_files) == 0 and len(copyright_missing_files) == 0:
reuse_compliant = True
Expand Down

0 comments on commit 73884c5

Please sign in to comment.