duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] [0.7.12] gpg.py and --pinentry-mode=loopback


From: Richard McGraw
Subject: Re: [Duplicity-talk] [0.7.12] gpg.py and --pinentry-mode=loopback
Date: Thu, 20 Apr 2017 10:51:17 +0200

On Fri, 24 Mar 2017 10:34:59 -0500
Kenneth Loafman <address@hidden> wrote:

> The --pinentry was not added until gpg 2.1, so the additional
> checks.  I'll need to modify the man page to match.
> 
> ...Ken
> 
In 0.7.12 around line 140 of gpg.py, the code does something like:

if use_agent and gpg_version < 2.0:
        add '--use-agent' to gpg_options
if gpg_version >= 2.1
        add '--pinentry-mode=loopback' to gpg_options

So, '--pinentry-mode=loopback' is added regardless of
globals.use_agent, hence error messages which say "Can't get input in
batch mode". 

At my end I changed it to something like:

if use_agent:
        add '--use-agent' to gpg_options if gpg_version < 2.0
else if gpg_version >= 2.1:
        add '--pinentry-mode=loopback' to gpg_options

--
  Richard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]