aboutsummaryrefslogtreecommitdiff
path: root/gkeys/bin
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-12-25 09:00:48 -0800
committerBrian Dolbec <dolsen@gentoo.org>2015-12-25 09:00:48 -0800
commit474c437ce28b9d882aa4813dab289704b77a3b46 (patch)
tree064d47e0d5dd4dfe8a71603a5ba46d8d2f000176 /gkeys/bin
parentgkeys/actionbase.py: Add an exception to the raise statements (diff)
downloadgentoo-keys-474c437ce28b9d882aa4813dab289704b77a3b46.tar.gz
gentoo-keys-474c437ce28b9d882aa4813dab289704b77a3b46.tar.bz2
gentoo-keys-474c437ce28b9d882aa4813dab289704b77a3b46.zip
gkeys-gpg: Make singing and other than verify actions work
Diffstat (limited to 'gkeys/bin')
-rwxr-xr-xgkeys/bin/gkeys-gpg8
1 files changed, 8 insertions, 0 deletions
diff --git a/gkeys/bin/gkeys-gpg b/gkeys/bin/gkeys-gpg
index 3bed18f..f064b14 100755
--- a/gkeys/bin/gkeys-gpg
+++ b/gkeys/bin/gkeys-gpg
@@ -28,6 +28,14 @@ import os
import sys
+if '--verify' not in sys.argv:
+ # we are not verifying now, just call out to the normal
+ # gpg with args exactly as we were called with
+ sys.argv[0] = '/usr/bin/gpg'
+ os.execvp('/usr/bin/gpg', sys.argv)
+ sys.exit(1)
+
+
# This block ensures that ^C interrupts are handled quietly.
try:
import signal