Turn off repodata signing
This commit is contained in:
parent
ce4873a1f1
commit
b4e93a95bf
@ -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");
|
||||
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) {
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user