]> err.no Git - pwstore/commitdiff
Use ./.keyring when learning key fingerprints too
authorTollef Fog Heen <tfheen@err.no>
Mon, 29 Jul 2013 09:23:40 +0000 (11:23 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 29 Jul 2013 09:23:40 +0000 (11:23 +0200)
pws

diff --git a/pws b/pws
index 7be90b436cc1598de75779d5148963bc74559203..98e475eb5eb97b93b3843f90b72800f5b8f9218c 100755 (executable)
--- a/pws
+++ b/pws
@@ -165,6 +165,7 @@ class GnuPG
       # 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.push "--keyring=./.keyring" if FileTest.exists?(".keyring")
       args.concat need_to_learn
       (outtxt, stderrtxt, statustxt) = GnuPG.gpgcall('', args, true)