From: Peter Palfrader Date: Fri, 19 Sep 2008 16:35:46 +0000 (+0200) Subject: gnupg is broken. news @11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eee618bf1a00ae4db3e3be34e52ca2bff2dbeb25;p=pwstore gnupg is broken. news @11 --- diff --git a/pws b/pws index 67591b3..cccb42c 100755 --- a/pws +++ b/pws @@ -143,7 +143,7 @@ class GnuPG end def GnuPG.get_fprs_from_keyids(keyids) learn_fingerprints_from_keyids(keyids) - return keyids.collect{ |k| get_fpr_from_keyid(k) } + return keyids.collect{ |k| get_fpr_from_keyid(k) or "unknown" } end # this is to load the keys we will soon be asking about into @@ -151,7 +151,10 @@ class GnuPG def GnuPG.learn_fingerprints_from_keyids(keyids) need_to_learn = keyids.reject{ |k| @@keyid_fpr_mapping.has_key?(k) } if need_to_learn.size > 0 - args = %w{--fast-list-mode --with-colons --with-fingerprint --list-keys} + # we can't use --fast-list-mode here because GnuPG is broken + # and does not show elmo's fingerprint in a call like + # gpg --with-colons --fast-list-mode --with-fingerprint --list-key D7C3F131AB2A91F5 + args = %w{--with-colons --with-fingerprint --list-keys} args.concat need_to_learn (outtxt, stderrtxt, statustxt) = GnuPG.gpgcall('', args, true)