Get rid of repodata index-files; the archive is now 8x smaller.
See the NEWS file for more information.
This commit is contained in:
11
lib/repo.c
11
lib/repo.c
@@ -202,13 +202,6 @@ out:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
xbps_repo_open_idxfiles(struct xbps_repo *repo)
|
||||
{
|
||||
assert(repo);
|
||||
repo->idxfiles = repo_get_dict(repo);
|
||||
}
|
||||
|
||||
void
|
||||
xbps_repo_close(struct xbps_repo *repo, bool lock)
|
||||
{
|
||||
@@ -225,10 +218,6 @@ xbps_repo_close(struct xbps_repo *repo, bool lock)
|
||||
xbps_object_release(repo->idxmeta);
|
||||
repo->idxmeta = NULL;
|
||||
}
|
||||
if (repo->idxfiles != NULL) {
|
||||
xbps_object_release(repo->idxfiles);
|
||||
repo->idxfiles = NULL;
|
||||
}
|
||||
if (lock && lockf(repo->fd, F_ULOCK, 0) == -1)
|
||||
xbps_dbg_printf(repo->xhp, "[repo] failed to unlock %s: %s\n", repo->uri, strerror(errno));
|
||||
|
||||
|
@@ -280,7 +280,7 @@ xbps_pkgpattern_version(const char *pkg)
|
||||
return strpbrk(pkg, "><*?[]");
|
||||
}
|
||||
|
||||
char HIDDEN *
|
||||
char *
|
||||
xbps_repository_pkg_path(struct xbps_handle *xhp, xbps_dictionary_t pkg_repod)
|
||||
{
|
||||
const char *pkgver, *arch, *repoloc;
|
||||
|
Reference in New Issue
Block a user