The call to db_delete_key() was claiming we were in a transaction, which
isn't true and causes failures with deletion with DB4.
} else if (!strcmp("delete", argv[optind])) {
if (!isfp) {
if (dbctx->fetch_key_id(dbctx, keyid, &keys,
} else if (!strcmp("delete", argv[optind])) {
if (!isfp) {
if (dbctx->fetch_key_id(dbctx, keyid, &keys,
get_fingerprint(keys->publickey,
&fingerprint);
dbctx->delete_key(dbctx, &fingerprint,
get_fingerprint(keys->publickey,
&fingerprint);
dbctx->delete_key(dbctx, &fingerprint,
}
} else
dbctx->delete_key(dbctx, &fingerprint, false);
}
} else
dbctx->delete_key(dbctx, &fingerprint, false);