seth vidal wrote:
On Mon, 2009-01-19 at 18:38 -0600, Jeffrey Ollie wrote:
On Mon, Jan 19, 2009 at 6:18 PM, Jesse Keating <[email protected]> wrote:
Is there anything better we can do instead of snaking raw data out of
headers?
Use pygpgme?

    import gpgme

    ctx = gpgme.Context()

    key = ctx.get_key('6D97044E')

    print [subkey.length for subkey in key.subkeys]

The docs for gpgme/pygpgme aren't great but I have a little experience
with it so we can probably figure out what needs to be done.  Can you
point out where exactly in the code the problem is?

That won't let you pull the signature out of an rpm header. though.

Well, the code is probably pulling the signature correctly, it's just not reading the key from said signature correctly. Perhaps pygpgme can do that for us?

--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to