#603422 jetring-gen fails to generate an add-* file

#603422#5
Date:
2010-11-13 23:04:40 UTC
From:
To:
On trying to complete the procedure to become a DM, I stumbled upon a problem in jetring-gen.

Instead of generating add-* files it creates a lot of delete-<key-id> files.

Here is the output of the invocation:

lisandro@luna:~/jetring$ LANG=C jetring-gen /usr/share/keyrings/debian-maintainers.gpg debian-maintainers.gpg 'Add Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> as a Debian Maintainer'
warning: failed setting cache time: Operation not permittedgpg: keyring `/home/lisandro/jetring/debian-maintainers.gpg' created
gpg: /tmp/jetring.TF_sas06xR/trustdb.gpg: trustdb created
Use of uninitialized value $id in hash element at /usr/bin/jetring-diff line 124, <DUMP> line 1.
Use of uninitialized value $kmtime in utime at /usr/bin/jetring-diff line 129.
Use of uninitialized value $kmtime in utime at /usr/bin/jetring-diff line 129.
delete-00AB067AE47B79A4

[snip same output with different key IDs]

delete-E7F710555409E422
Use of uninitialized value in string eq at /usr/bin/jetring-diff line 145.
Use of uninitialized value in string eq at /usr/bin/jetring-diff line 145.
delete-EA11D609624D95E5

[snip more output as above]

I tried in a new user with the same output. Ana Guerrero tried in her machine too, with the same result.

Regards, Lisandro.

#603422#10
Date:
2010-11-15 02:07:01 UTC
From:
To:
Maybe this isn't a bug after all, but I let you decide on this.

Modestas Vainius suggested me to thes with the following, wich worked
perfectly:

$ cp /usr/share/keyrings/debian-maintainers.gpg .
$ gpg --export <key-id> | gpg --no-default-keyring --homedir=/tmp --
keyring=~/debian-maintainers.gpg --import
$ jetring-gen /usr/share/keyrings/debian-maintainers.gpg debian-
maintainers.gpg "Add Someone <someone@mail.org>"

If you consider this is not a bug after all, then maybe I should update the
wiki to consider this case.

Regards, Lisandro.