[Yum-devel] gpg importing script

Menno Smits menno-yum at freshfoo.com
Sat Jan 15 00:28:49 UTC 2005


seth vidal wrote:
> One other, minor, thing - is it possible to print the key fingerprint/id
> from pgpmsg.py? And If so should we output that as well before the user
> confirmation?

I intentionally didn't do this due to the case of multiple keys in the 
one public key block. During my testing I found that you can't reliably 
predict which key ID RPM is going to use from the block when there's 
multiple keys present. Usually there's only one key ID so in that case 
it's easy. However, there was one block I tested with that contained 8 
keys and RPM used something like the 5th one.

I figured that if I just display the first key ID every time it could be 
confusing to users if they see a different key ID in the rpmdb to what 
yum showed them.

Perhaps yum could just display all the key IDs? Usually there's just one 
or two but like I said there can be more.

I might experiment some more to see if I predict the key that will get 
imported a little better. If this can be done it'll simplify some of the 
other gpgkey code as well.

Menno


Scanned by the NetBox from NetBox Blue
(http://netboxblue.com/)




More information about the Yum-devel mailing list