libxbps: stop and error out if pkg signature is not valid.

This commit is contained in:
Juan RP
2015-05-09 06:27:03 +02:00
parent b22d557287
commit da74e3dd9e
2 changed files with 5 additions and 3 deletions

View File

@ -95,10 +95,9 @@ check_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter)
"%s: verifying RSA signature...", pkgver);
if (!xbps_verify_file_signature(repo, binfile)) {
rv = errno;
rv = EPERM;
xbps_set_cb_state(xhp, XBPS_STATE_VERIFY_FAIL, rv, pkgver,
"%s: the RSA signature is not valid: %s", pkgver,
strerror(rv));
"%s: the RSA signature is not valid!", pkgver);
free(binfile);
break;
}