diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index ead7f62b..27ae66cf 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -94,9 +94,10 @@ check_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter) "%s: verifying RSA signature...", pkgver); if (!xbps_verify_file_signature(repo, binfile)) { - rv = EPERM; + rv = errno; xbps_set_cb_state(xhp, XBPS_STATE_VERIFY_FAIL, rv, pkgver, - "%s: the RSA signature is not valid!", pkgver); + "%s: the RSA signature is not valid: %s", pkgver, + strerror(rv)); free(binfile); break; }