From 301bf9602e90a41543ef5323c35d7f5652a4027f Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 16 Aug 2008 14:17:10 +0100 Subject: [PATCH] Use GPG agent if available. This means that you only have to enter the password once, and the agent will remember it for a while. Useful when processing lots of feeds. --- signing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/signing.py b/signing.py index e6b2dd1..3f5b628 100644 --- a/signing.py +++ b/signing.py @@ -55,6 +55,7 @@ def run_gpg(default_key, *arguments): arguments = list(arguments) if default_key is not None: arguments = ['--default-key', default_key] + arguments + arguments.insert(0, '--use-agent') arguments.insert(0, 'gpg') if os.spawnvp(os.P_WAIT, 'gpg', arguments): raise SafeException("Command '%s' failed" % arguments) -- 2.11.4.GIT