@ -40,7 +40,7 @@
|
||||
static bool
|
||||
repodata_commit(struct xbps_handle *xhp, const char *repodir,
|
||||
xbps_dictionary_t idx, xbps_dictionary_t meta, xbps_dictionary_t stage,
|
||||
const char *compression, const char *privkey)
|
||||
const char *compression)
|
||||
{
|
||||
xbps_object_iterator_t iter;
|
||||
xbps_object_t keysym;
|
||||
@ -172,8 +172,9 @@ repodata_commit(struct xbps_handle *xhp, const char *repodir,
|
||||
printf("stage: added `%s' (%s)\n", pkgver, arch);
|
||||
}
|
||||
xbps_object_iterator_release(iter);
|
||||
rv = repodata_flush(xhp, repodir, "stagedata", stage, NULL, compression, privkey);
|
||||
} else {
|
||||
rv = repodata_flush(xhp, repodir, "stagedata", stage, NULL, compression);
|
||||
}
|
||||
else {
|
||||
char *stagefile;
|
||||
iter = xbps_dictionary_iterator(stage);
|
||||
while ((keysym = xbps_object_iterator_next(iter))) {
|
||||
@ -189,7 +190,7 @@ repodata_commit(struct xbps_handle *xhp, const char *repodir,
|
||||
stagefile = xbps_repo_path_with_name(xhp, repodir, "stagedata");
|
||||
unlink(stagefile);
|
||||
free(stagefile);
|
||||
rv = repodata_flush(xhp, repodir, "repodata", idx, meta, compression, privkey);
|
||||
rv = repodata_flush(xhp, repodir, "repodata", idx, meta, compression);
|
||||
}
|
||||
xbps_object_release(usedshlibs);
|
||||
xbps_object_release(oldshlibs);
|
||||
@ -197,7 +198,7 @@ repodata_commit(struct xbps_handle *xhp, const char *repodir,
|
||||
}
|
||||
|
||||
int
|
||||
index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force, const char *compression, const char *privkey)
|
||||
index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force, const char *compression)
|
||||
{
|
||||
xbps_dictionary_t idx, idxmeta, idxstage, binpkgd, curpkgd;
|
||||
struct xbps_repo *repo = NULL, *stage = NULL;
|
||||
@ -382,7 +383,7 @@ index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force
|
||||
/*
|
||||
* Generate repository data files.
|
||||
*/
|
||||
if (!repodata_commit(xhp, repodir, idx, idxmeta, idxstage, compression, privkey)) {
|
||||
if (!repodata_commit(xhp, repodir, idx, idxmeta, idxstage, compression)) {
|
||||
fprintf(stderr, "%s: failed to write repodata: %s\n",
|
||||
_XBPS_RINDEX, strerror(errno));
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user