From d115f5997489381957c81997e8912f9001d4c838 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 26 Jul 2018 08:51:05 +0200 Subject: openpgp: Fix listing keys with GnuPG-1.4 --- gemato/openpgp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')) -- cgit v1.2.3