Fix unencrypted delivery and key removal #130

Merged
pfm merged 40 commits from 129-key-removal into main 2023-12-02 21:59:15 +01:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 0fe5e6b3dc - Show all commits

View File

@ -65,7 +65,9 @@ def _build_command(key_home, *args, **kwargs):
def public_keys(keyhome, *, key_id=None):
"""List public keys from keyring KEYHOME."""
"""List public keys from keyring KEYHOME.
Returns a dict with fingerprints as keys and email as values."""
cmd = _build_command(keyhome, '--list-keys', '--with-colons')
if key_id is not None:
cmd.append(key_id)