libxbps: rename xbps_repository_pool_xxx to xbps_rpool_xxx.
This commit is contained in:
@@ -78,7 +78,7 @@ cachedir_clean(void)
|
||||
* Remove binary pkg if it's not registered in any repository
|
||||
* or if hash doesn't match.
|
||||
*/
|
||||
repo_pkgd = xbps_repository_pool_find_pkg_exact(pkgver);
|
||||
repo_pkgd = xbps_rpool_find_pkg_exact(pkgver);
|
||||
if (repo_pkgd) {
|
||||
prop_dictionary_get_cstring_nocopy(repo_pkgd,
|
||||
"filename-sha256", &rsha256);
|
||||
|
@@ -124,7 +124,7 @@ repo_find_files_in_packages(int npatterns, char **patterns)
|
||||
|
||||
ffd->npatterns = npatterns;
|
||||
ffd->patterns = patterns;
|
||||
rv = xbps_repository_pool_foreach(find_files_in_package, ffd);
|
||||
rv = xbps_rpool_foreach(find_files_in_package, ffd);
|
||||
free(ffd);
|
||||
return rv;
|
||||
}
|
||||
|
@@ -150,7 +150,7 @@ main(int argc, char **argv)
|
||||
if (argc != 1)
|
||||
usage(true);
|
||||
|
||||
rv = xbps_repository_pool_foreach(repo_list_uri_cb, NULL);
|
||||
rv = xbps_rpool_foreach(repo_list_uri_cb, NULL);
|
||||
if (rv == ENOTSUP)
|
||||
xbps_error_printf("xbps-repo: no repositories "
|
||||
"currently registered!\n");
|
||||
@@ -164,7 +164,7 @@ main(int argc, char **argv)
|
||||
if (argc < 1 || argc > 2)
|
||||
usage(true);
|
||||
|
||||
rv = xbps_repository_pool_foreach(repo_pkg_list_cb, argv[1]);
|
||||
rv = xbps_rpool_foreach(repo_pkg_list_cb, argv[1]);
|
||||
if (rv == ENOTSUP)
|
||||
xbps_error_printf("xbps-repo: no repositories "
|
||||
"currently registered!\n");
|
||||
@@ -186,7 +186,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
rsd->npatterns = argc;
|
||||
rsd->patterns = argv;
|
||||
rv = xbps_repository_pool_foreach(repo_search_pkgs_cb, rsd);
|
||||
rv = xbps_rpool_foreach(repo_search_pkgs_cb, rsd);
|
||||
free(rsd);
|
||||
if (rv == ENOTSUP)
|
||||
xbps_error_printf("xbps-repo: no repositories "
|
||||
@@ -231,8 +231,7 @@ main(int argc, char **argv)
|
||||
if (argc != 2)
|
||||
usage(true);
|
||||
|
||||
pkgd = xbps_repository_pool_dictionary_metadata_plist(argv[1],
|
||||
XBPS_PKGFILES);
|
||||
pkgd = xbps_rpool_dictionary_metadata_plist(argv[1], XBPS_PKGFILES);
|
||||
if (pkgd == NULL) {
|
||||
if (errno == ENOTSUP) {
|
||||
xbps_error_printf("xbps-repo: no repositories "
|
||||
@@ -274,7 +273,7 @@ main(int argc, char **argv)
|
||||
if (argc != 1)
|
||||
usage(true);
|
||||
|
||||
rv = xbps_repository_pool_sync();
|
||||
rv = xbps_rpool_sync();
|
||||
if (rv == ENOTSUP) {
|
||||
xbps_error_printf("xbps-repo: no repositories "
|
||||
"currently registered!\n");
|
||||
|
@@ -49,9 +49,9 @@ show_pkg_info_from_repolist(const char *pattern, const char *option)
|
||||
prop_dictionary_t pkgd;
|
||||
|
||||
if (xbps_pkgpattern_version(pattern))
|
||||
pkgd = xbps_repository_pool_find_pkg(pattern, true, false);
|
||||
pkgd = xbps_rpool_find_pkg(pattern, true, false);
|
||||
else
|
||||
pkgd = xbps_repository_pool_find_pkg(pattern, false, true);
|
||||
pkgd = xbps_rpool_find_pkg(pattern, false, true);
|
||||
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
@@ -73,9 +73,9 @@ show_pkg_deps_from_repolist(const char *pattern)
|
||||
const char *ver, *repoloc;
|
||||
|
||||
if (xbps_pkgpattern_version(pattern))
|
||||
pkgd = xbps_repository_pool_find_pkg(pattern, true, false);
|
||||
pkgd = xbps_rpool_find_pkg(pattern, true, false);
|
||||
else
|
||||
pkgd = xbps_repository_pool_find_pkg(pattern, false, true);
|
||||
pkgd = xbps_rpool_find_pkg(pattern, false, true);
|
||||
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
|
Reference in New Issue
Block a user