From 53c6a5d1d72b503931a8b6055c645f5947f9746f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 1 Dec 2014 12:52:26 +0100 Subject: [PATCH] xbps_transaction_commit: if the pkg RSA signature is invalid print rval too. --- lib/transaction_commit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }