From 210d73cb57d883fa9f852a08919d141c304ae1cb Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Sep 2008 19:06:30 +0200 Subject: [PATCH] Do not throw an exception of verifying the .users file cases gpg to exit with a non-zero status --- pws | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pws b/pws index df7d0bb..db0046e 100755 --- a/pws +++ b/pws @@ -219,7 +219,7 @@ class GroupConfig trusted.push line end - (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, %w{}, true) + (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, %w{}) goodsig = false validsig = nil statustxt.split("\n").each do |line| @@ -240,6 +240,11 @@ class GroupConfig exit(1) end + if not exitstatus==0 + STDERR.puts "gpg verify failed for .users file" + exit(1) + end + return outtxt end -- 2.39.5