libalpm: fix importing keys from keyserver

commit 95a7d416ce broke
key_search_keyserver() by removing the `ret = 1` at the end of the
function, causing the caller to allways think the funciton failed even
when it did not. Due to WKD being the primary method to import keys this
was unnoticed.
This commit is contained in:
morganamilo 2025-08-01 09:20:19 +01:00
parent a0be6f0829
commit c7cb6e486b
No known key found for this signature in database
GPG key ID: E48D0A8326DE47C5

View file

@ -376,6 +376,7 @@ static int key_search_keyserver(alpm_handle_t *handle, const char *fpr,
pgpkey->expires = key->subkeys->expires;
pgpkey->length = key->subkeys->length;
pgpkey->revoked = key->subkeys->revoked;
ret = 1;
gpg_error:
if(ret != 1) {