Make rpmkeys --list accept short key IDs
Get this in sync with rpm --delete for now.
This commit is contained in:
parent
5ffd0d8865
commit
e575fac7cf
|
@ -64,7 +64,8 @@ static int matchingKeys(rpmKeyring keyring, ARGV_const_t args, void * userdata,
|
|||
while ((key = rpmKeyringIteratorNext(iter))) {
|
||||
char * fp = rpmPubkeyFingerprintAsHex(key);
|
||||
char * keyid = rpmPubkeyKeyIDAsHex(key);
|
||||
if (!strcmp(*arg, fp) || !strcmp(*arg, keyid)) {
|
||||
if (!strcmp(*arg, fp) || !strcmp(*arg, keyid) ||
|
||||
!strcmp(*arg, keyid+8)) {
|
||||
found = true;
|
||||
}
|
||||
free(fp);
|
||||
|
|
Loading…
Reference in New Issue