Skip to content

Commit

Permalink
fix: Repology_cli.py reference in vulnxscan
Browse files Browse the repository at this point in the history
When invoking `repology_cli` as a command the `.py`
extension is no longer required.

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Nov 13, 2023
1 parent 48d1541 commit 16152ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vulnxscan/vulnxscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _run_repology_cli(pname, match_type="--pkg_exact"):
status = "--re_status=outdated|newest|devel|unique"
out = f"--out={f.name}"
search = f"{match_type}={pname}"
cmd = f"repology_cli.py {repo} {status} {search} {out} "
cmd = f"repology_cli {repo} {status} {search} {out} "
ret = exec_cmd(cmd.split(), raise_on_error=False, return_error=True)
if ret and ret.stderr and "No matching packages" in ret.stderr:
return None
Expand Down

0 comments on commit 16152ee

Please sign in to comment.