From f4ad0eef31778c9567e0bd1c4f7fc81395eef970 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 23 Mar 2009 12:39:49 +0100 Subject: [PATCH] Print gpg's exit status when it fails --- debian/changelog | 6 ++++++ userdir_gpg.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 73ec66c..348d770 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +userdir-ldap (0.3.63) unstable; urgency=low + + * Print gpg's exit status when it fails. + + -- Peter Palfrader Mon, 23 Mar 2009 12:39:27 +0100 + userdir-ldap (0.3.62) unstable; urgency=low * ud-generate: do not die when building ssh_known_hosts diff --git a/userdir_gpg.py b/userdir_gpg.py index cf9cdbc..7707652 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -423,7 +423,7 @@ def GPGCheckSig(Message): # A gpg failure is an automatic bad signature if Exit[1] != 0 and Why == None: GoodSig = 0; - Why = "GPG execution failed " + str(Exit[0]); + Why = "GPG execution returned non-zero exit status: " + str(Exit[1]); if GoodSig == 0 and (Why == None or len(Why) == 0): Why = "Checking Failed"; -- 2.20.1