gpg issues

John A Meinel john at arbash-meinel.com
Wed Feb 15 03:30:18 GMT 2006


John A Meinel wrote:
> John A Meinel wrote:
>> Robert Collins wrote:
> 
> ...
> 
>> At this point, if you don't think the gpg code should be re-written,
>> I'll just write a plugin which monkey patches GpgStrategy.
> 
> The plugin turned out to be rather trivial. So I just wrote it. I'll let
> you decide how you want the code to evolve.
> 
> For people who are interested, the plugin is at:
> 
> http://bzr.arbash-meinel.com/plugins/gpg_uses_tempfile/
> 
> It is a single short file, so I'm attaching it.
> 
> John
> =:->

This plugin isn't perfect, but it has the same problem my changes would
have had. It only works if 'bzr' has a valid stdin. Because 'find
.bzr/revision-store -type f | xargs bzr re-sign' still fails. (And I
found that I forgot to import bzrlib.errors).

But it still is a heck of a lot better for my use case. (I don't
typically pipe things into bzr commit, and re-sign is done very
infrequently).

But the plugin has a small update.

Oh, and if someone is trying to figure out the specific problem with
pinentry or with gpg, this is the error it gives:

gpg-agent[7471]: command get_passphrase failed: Operation cancelled
gpg-agent[7471]: DBG: map_to_assuan_status called with no error source

So if anything it is a bug in gpg-agent. It sounds like it fails because
it can't pass stdout to pinentry to handle printing errors.

But its good enough for me. (Especially now that I wrote sign-my-commits).

John
=:->

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060214/40d4270e/attachment.pgp 


More information about the bazaar mailing list