@@ -95,7 +95,7 @@ out:
|
||||
|
||||
static int
|
||||
cleanup_repo(struct xbps_handle *xhp, const char *repodir, struct xbps_repo *repo,
|
||||
const char *reponame, bool hashcheck, const char *compression, const char *privkey)
|
||||
const char *reponame, bool hashcheck, const char *compression)
|
||||
{
|
||||
int rv = 0;
|
||||
xbps_array_t allkeys;
|
||||
@@ -117,7 +117,7 @@ cleanup_repo(struct xbps_handle *xhp, const char *repodir, struct xbps_repo *rep
|
||||
free(stagefile);
|
||||
}
|
||||
if (!xbps_dictionary_equals(dest, repo->idx)) {
|
||||
if (!repodata_flush(xhp, repodir, reponame, dest, repo->idxmeta, compression, privkey)) {
|
||||
if (!repodata_flush(xhp, repodir, reponame, dest, repo->idxmeta, compression)) {
|
||||
rv = errno;
|
||||
fprintf(stderr, "failed to write repodata: %s\n",
|
||||
strerror(errno));
|
||||
@@ -136,7 +136,7 @@ cleanup_repo(struct xbps_handle *xhp, const char *repodir, struct xbps_repo *rep
|
||||
* binary package cannot be read (unavailable, not enough perms, etc).
|
||||
*/
|
||||
int
|
||||
index_clean(struct xbps_handle *xhp, const char *repodir, const bool hashcheck, const char *compression, const char *privkey)
|
||||
index_clean(struct xbps_handle *xhp, const char *repodir, const bool hashcheck, const char *compression)
|
||||
{
|
||||
struct xbps_repo *repo, *stage;
|
||||
char *rlockfname = NULL;
|
||||
@@ -168,11 +168,11 @@ index_clean(struct xbps_handle *xhp, const char *repodir, const bool hashcheck,
|
||||
}
|
||||
printf("Cleaning `%s' index, please wait...\n", repodir);
|
||||
|
||||
if ((rv = cleanup_repo(xhp, repodir, repo, "repodata", hashcheck, compression, privkey))) {
|
||||
if ((rv = cleanup_repo(xhp, repodir, repo, "repodata", hashcheck, compression))) {
|
||||
goto out;
|
||||
}
|
||||
if (stage) {
|
||||
cleanup_repo(xhp, repodir, stage, "stagedata", hashcheck, compression, privkey);
|
||||
cleanup_repo(xhp, repodir, stage, "stagedata", hashcheck, compression);
|
||||
}
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user