xbps_transaction_commit: if pkg sha256 hash is invalid print rval.

This commit is contained in:
Juan RP 2014-12-01 12:47:29 +01:00
parent 4479bff03e
commit c47beef740

View File

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