Skip to content

Commit 63b3fe2

Browse files
committed
PoC 1
1 parent 3cb5f66 commit 63b3fe2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/keystore.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@ rpmRC keystore_rpmdb::delete_key(rpmtxn txn, const string & keyid, unsigned int
350350

351351
rpmRC keystore_rpmdb::delete_key(rpmtxn txn, rpmPubkey key)
352352
{
353-
return delete_key(txn, rpmPubkeyFingerprintAsHex(key));
353+
rpmRC rc = RPMRC_FAIL;
354+
rc = delete_key(txn, rpmPubkeyFingerprintAsHex(key));
355+
if (rc == RPMRC_NOTFOUND)
356+
rc = delete_key(txn, rpmPubkeyKeyIDAsHex(key)+8);
357+
return rc;
354358
}
355359

356360
rpmRC keystore_rpmdb::delete_store(rpmtxn txn)

0 commit comments

Comments
 (0)