diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-01-24 21:26:48 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-01-24 21:26:48 +0100 |
commit | 63bd6b20e0dfcc662fc11a6e27859230a2f3818e (patch) | |
tree | 70d6844c96f1b96f9f15880e68305c3e3f949f1d | |
parent | b1500d3ee856f7251c987a2a9d733178a2b44023 (diff) | |
download | gemato-63bd6b20e0dfcc662fc11a6e27859230a2f3818e.tar.gz |
cli: Print OpenPGP signature info when verifying
-rw-r--r-- | gemato/cli.py | 9 |
1 files changed, 9 insertions, 0 deletions
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)) |