Skip to content

Commit

Permalink
fix: import json flag
Browse files Browse the repository at this point in the history
  • Loading branch information
b31ngd3v committed Jul 31, 2023
1 parent 3fb32c6 commit 88ed2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cve_bin_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def main(argv=None):
path=args["import_json"],
pubkey=args["verify"],
ignore_signature=args["ignore_sig"],
log_signature_error=args["log-signature-error"],
log_signature_error=args["log_signature_error"],
)
# And terminate operation
return return_code
Expand Down
4 changes: 1 addition & 3 deletions cve_bin_tool/cvedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,9 +1072,7 @@ def json_to_db_wrapper(self, path, pubkey, ignore_signature, log_signature_error
data = json_fd.read()
json_fd.close()
if is_signed and not ignore_signature:
signature_path = str(
path / dir / str(year).replace(".json", ".asc")
)
signature_path = str(str(year).replace(".json", ".asc"))
is_verified = gpg.verify_data(
signature_path, data.encode("utf-8")
)
Expand Down

0 comments on commit 88ed2e4

Please sign in to comment.