From 63bd6b20e0dfcc662fc11a6e27859230a2f3818e Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 24 Jan 2018 21:26:48 +0100 Subject: cli: Print OpenPGP signature info when verifying --- gemato/cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gemato/cli.py b/gemato/cli.py index b0f4dbe..de5930c 100644 --- a/gemato/cli.py +++ b/gemato/cli.py @@ -76,6 +76,15 @@ def do_verify(args, argp): logging.error('Top-level Manifest {} is not OpenPGP signed'.format(tlm)) return 1 + if m.openpgp_signed: + logging.info('Valid OpenPGP signature found:') + logging.info('- primary key: {}'.format( + m.openpgp_signature.primary_key_fingerprint)) + logging.info('- subkey: {}'.format( + m.openpgp_signature.fingerprint)) + logging.info('- timestamp: {}'.format( + m.openpgp_signature.timestamp)) + logging.info('Verifying {}...'.format(p)) relpath = os.path.relpath(p, os.path.dirname(tlm)) -- cgit v1.2.3