From 1779d694d145fe1d26b2d139cce75576a9bbb19d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 18 Jul 2011 16:23:06 +0200 Subject: [PATCH] Add .keyring to keyrings for verifying .users, if the file exists --- pws | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pws b/pws index b81da23..13c6783 100755 --- a/pws +++ b/pws @@ -232,7 +232,9 @@ class GroupConfig trusted.push line end - (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, %w{}) + args = [] + args.push "--keyring=./.keyring" if FileTest.exists?(".keyring") + (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, args) goodsig = false validsig = nil statustxt.split("\n").each do |line| -- 2.39.5