From c47beef74065d52f42b7a748d76251a1b69f60fb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 1 Dec 2014 12:47:29 +0100 Subject: [PATCH] xbps_transaction_commit: if pkg sha256 hash is invalid print rval. --- lib/transaction_commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index be30732c..ead7f62b 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -107,7 +107,7 @@ check_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter) xbps_dictionary_get_cstring_nocopy(obj, "filename-sha256", &sha256); if ((rv = xbps_file_hash_check(binfile, sha256)) != 0) { xbps_set_cb_state(xhp, XBPS_STATE_VERIFY_FAIL, rv, pkgver, - "%s: SHA256 hash is not valid!", pkgver, strerror(rv)); + "%s: SHA256 hash is not valid: %s", pkgver, strerror(rv)); free(binfile); break; }