Skip to content

Commit

Permalink
fix: also allow return code 0 for gpg import
Browse files Browse the repository at this point in the history
  • Loading branch information
cofiem committed May 28, 2023
1 parent bfcd15d commit 3b9ea66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_xpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def _gpg_verify(
self._path_to_str(key_path),
]
result_import = subprocess.run(cmd_import, capture_output=True)
expected_import_return_code = 2
if result_import.returncode != expected_import_return_code:
expected_import_return_codes = [0, 2]
if result_import.returncode not in expected_import_return_codes:
logger.warning("Unexpected return code '%s'.", result_import)
# expecting return code 2 because there is no ultimately trusted key
return False
Expand Down

0 comments on commit 3b9ea66

Please # to comment.