Skip to content

Commit

Permalink
Print some progress messages
Browse files Browse the repository at this point in the history
This prints out a success message per RPM and one overall.

Signed-off-by: Patrick Uiterwijk <[email protected]>
  • Loading branch information
puiterwijk committed Sep 14, 2021
1 parent b2a6a71 commit 97d7e0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rpm_head_signing/verify_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ def main(args):

logging.debug("File verified")

logging.info("Verified signatures on RPM %s", rpm_path)

except Exception:
logging.warning("Error during verification", exc_info=True)
logging.warning("Error during verification of %s", rpm_path, exc_info=True)
had_error = True

if not args.keep_tmp_dir:
Expand Down Expand Up @@ -200,7 +202,9 @@ def __main__():
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)
if not main(args):
if main(args):
logging.info("All packages were successfully validated")
else:
raise Exception("At least one exception was thrown during validation")


Expand Down

0 comments on commit 97d7e0d

Please sign in to comment.