Comment 7 for bug 44755

Revision history for this message
John Dong (jdong) wrote : Re: [Bug 44755] Re: [Bug 44755] Re: bzr commit fails when GPG agent is unavailable

On 5/15/06, Robert Collins <email address hidden> wrote:
>
>
> >From the man page for GPG:
>
> RETURN VALUE
> The program returns 0 if everything was fine, 1 if at least a
> signature was bad, and other error codes for fatal errors.
>
>
> Ignoring this value is cavalier at best.

For signing? I do not see much of a threat in signing... Either a signature
went through and signed output goes to stdout, or nothing goes to stdout.
There is no 'grey area' in between...

I am strongly -1 on this patch.
>
> I consider it a bug in gpg that it returns a status of 2 ('some fatal
> error' according to the man page) if it can't contact the agent, and I
> urge you to file a bug on gpg, perhaps asking for a '--auto-use-agent'
> or something, which will not return 2 if the agent is missing.

I agree, it is that it's a GPG bug. I've filed a bug report over at GPG:
http://bugs.gnupg.org/cgi-bin/gnatsweb.pl?cmd=view&database=default&user=guest&password=guest&pr=655

But I still think that for Bazaar-NG to adamantly refuse to provide a
workaround or otherwise fix this situation only screws over the users in the
end.

Rob
>
> --
> GPG key available at: <http://www.robertcollins.net/keys.txt>.
>
> --
> bzr commit fails when GPG agent is unavailable
> https://launchpad.net/bugs/44755
>