gpg: beter logging while search for GPG key

This commit is contained in:
Roman Zeyde
2016-10-17 11:08:34 +03:00
parent 79b6d31dfe
commit 2d57bf4453

View File

@@ -343,6 +343,8 @@ def load_public_key(pubkey_bytes, use_custom=False, ecdh=False):
packet = pubkey
while use_custom:
log.debug('GPG packet type: %s (algo = %s, custom = %s)',
packet['type'], packet['algo'], signature['_is_custom'])
if packet['type'] in ('pubkey', 'subkey') and signature['_is_custom']:
if ecdh == (packet['algo'] == protocol.ECDH_ALGO_ID):
log.debug('found custom %s', packet['type'])