Rename some symbols in repository_plist.c.
xbps_repository_get_pkg_plist_dict_from_url -> xbps_repository_plist_find_pkg_dict_from_url xbps_repository_get_pkg_plist_dict -> xbps_repository_plist_find_pkg_dict
This commit is contained in:
@@ -94,7 +94,7 @@ find_files_in_package(struct repository_pool_index *rpi, void *arg, bool *done)
|
||||
}
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
|
||||
pkg_filesd = xbps_repository_get_pkg_plist_dict_from_url(url,
|
||||
pkg_filesd = xbps_repository_plist_find_pkg_dict_from_url(url,
|
||||
XBPS_PKGFILES);
|
||||
free(url);
|
||||
if (pkg_filesd == NULL) {
|
||||
|
@@ -104,7 +104,7 @@ xbps_repo_addpkg_index(prop_dictionary_t idxdict, const char *filedir,
|
||||
goto out;
|
||||
}
|
||||
|
||||
newpkgd = xbps_repository_get_pkg_plist_dict_from_url(file,
|
||||
newpkgd = xbps_repository_plist_find_pkg_dict_from_url(file,
|
||||
XBPS_PKGPROPS);
|
||||
if (newpkgd == NULL) {
|
||||
fprintf(stderr, "xbps-repo: can't read %s %s metadata "
|
||||
|
@@ -184,7 +184,7 @@ main(int argc, char **argv)
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
pkgd = xbps_repository_get_pkg_plist_dict(argv[1],
|
||||
pkgd = xbps_repository_plist_find_pkg_dict(argv[1],
|
||||
XBPS_PKGFILES);
|
||||
if (pkgd == NULL) {
|
||||
if (errno != ENOENT) {
|
||||
|
@@ -259,7 +259,7 @@ show_pkg_info_from_repolist(const char *pkgname)
|
||||
}
|
||||
printf("Fetching info from: %s\n", repoloc);
|
||||
pkg_propsd =
|
||||
xbps_repository_get_pkg_plist_dict_from_url(url, XBPS_PKGPROPS);
|
||||
xbps_repository_plist_find_pkg_dict_from_url(url, XBPS_PKGPROPS);
|
||||
if (pkg_propsd == NULL) {
|
||||
free(url);
|
||||
prop_object_release(pkgd);
|
||||
|
Reference in New Issue
Block a user