Turn off repodata signing

This commit is contained in:
Piotr Wójcik 2019-10-01 21:18:25 +02:00 committed by Juan RP
parent ce4873a1f1
commit b4e93a95bf
2 changed files with 2 additions and 19 deletions

View File

@ -96,27 +96,10 @@ repodata_flush(struct xbps_handle *xhp, const char *repodir,
buflen = strlen(buf);
rv = xbps_archive_append_buf(ar, buf, buflen,
XBPS_REPOIDX, 0644, "root", "root");
free(buf);
if (rv != 0) {
free(buf);
return false;
}
if (meta != NULL)
{
rv = sign_buffer(buf, buflen, privkey, &sig, &siglen);
free(buf);
if (rv != 0) {
free(sig);
return false;
}
assert(sig);
rv = xbps_archive_append_buf(ar, sig, siglen,
XBPS_REPOIDX_SIG, 0644, "root", "root");
if (rv != 0) {
free(sig);
return false;
}
free(sig);
}
/* XBPS_REPOIDX_META */
if (meta == NULL) {

View File

@ -204,7 +204,7 @@ repo_open_local(struct xbps_repo *repo, const char *repofile)
repofile, strerror(rv));
return false;
}
if ((repo->idx = repo_get_dict(repo, &verified)) == NULL) {
if ((repo->idx = repo_get_dict(repo, NULL)) == NULL) {
xbps_dbg_printf(repo->xhp, "[repo] `%s' failed to internalize "
" index on archive, removing file.\n", repofile);
/* broken archive, remove it */