Skip to content

Commit

Permalink
Fix the fail package manager comment (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: jiyeong.seok <[email protected]>
  • Loading branch information
dd-jy authored Apr 30, 2024
1 parent 3fa6c69 commit 244434f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fosslight_dependency/run_dependency_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
if pm == const.GRADLE:
if const.ANDROID in found_package_manager.keys():
found_package_manager[const.ANDROID] = pass_key
if f"{const.ANDROID} ({', '.join(manifest_file_name)})" in fail_pm:
fail_pm.remove(f"{const.ANDROID} ({', '.join(manifest_file_name)})")
elif pm == const.ANDROID:
if const.GRADLE in found_package_manager.keys():
found_package_manager[const.GRADLE] = pass_key
if f"{const.GRADLE} ({', '.join(manifest_file_name)})" in fail_pm:
fail_pm.remove(f"{const.GRADLE} ({', '.join(manifest_file_name)})")
else:
fail_pm.append(f"{pm} ({', '.join(manifest_file_name)})")
cover = CoverItem(tool_name=_PKG_NAME,
Expand Down

0 comments on commit 244434f

Please sign in to comment.