diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-07-26 08:51:05 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-26 08:51:05 +0200 |
commit | d115f5997489381957c81997e8912f9001d4c838 (patch) | |
tree | 46df9b5d3e590ba2b4f9ac95e4628a56a773cade | |
parent | 4b1140e298d34d311278b83c919188cdd74ea0fb (diff) | |
download | gemato-d115f5997489381957c81997e8912f9001d4c838.tar.gz |
openpgp: Fix listing keys with GnuPG-1.4
-rw-r--r-- | gemato/openpgp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py index b22e494..0744399 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -242,7 +242,9 @@ disable-scdaemon keys were successfully found. Otherwise, returns false. """ # list all keys in the keyring - exitst, out, err = self._spawn_gpg(['--with-colons', '--list-keys'], '') + # (--fingerprint --fixed-list-mode are necessary for GnuPG-1.4) + exitst, out, err = self._spawn_gpg(['--with-colons', '--list-keys', + '--fingerprint', '--fixed-list-mode'], '') if exitst != 0: raise gemato.exceptions.OpenPGPKeyRefreshError(err.decode('utf8')) |