xbps_transaction_commit: if the pkg RSA signature is invalid print rval too.

This commit is contained in:
Juan RP 2014-12-01 12:52:26 +01:00
parent c47beef740
commit 53c6a5d1d7

View File

@ -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;
}