Gratuitous ABI break: xbps_binpkg_get_xxx() -> xbps_archive_fetch_xxx().
This commit is contained in:
@@ -136,7 +136,7 @@ repo_match_cb(struct xbps_handle *xhp,
|
||||
|
||||
bfile = xbps_repository_pkg_path(xhp, obj);
|
||||
assert(bfile);
|
||||
filesd = xbps_binpkg_get_plist(bfile, "/files.plist");
|
||||
filesd = xbps_archive_fetch_plist(bfile, "/files.plist");
|
||||
if (filesd == NULL) {
|
||||
xbps_dbg_printf(xhp, "%s: couldn't fetch files.plist from %s: %s\n",
|
||||
pkgver, bfile, strerror(errno));
|
||||
|
||||
@@ -323,7 +323,7 @@ repo_cat_file(struct xbps_handle *xhp, const char *pkg, const char *file)
|
||||
return EINVAL;
|
||||
|
||||
xbps_dbg_printf(xhp, "matched pkg at %s\n", url);
|
||||
rv = xbps_binpkg_get_file_into_fd(url, file, STDOUT_FILENO);
|
||||
rv = xbps_archive_fetch_file_into_fd(url, file, STDOUT_FILENO);
|
||||
free(url);
|
||||
return rv;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force
|
||||
/*
|
||||
* Read metadata props plist dictionary from binary package.
|
||||
*/
|
||||
binpkgd = xbps_binpkg_get_plist(pkg, "/props.plist");
|
||||
binpkgd = xbps_archive_fetch_plist(pkg, "/props.plist");
|
||||
if (binpkgd == NULL) {
|
||||
fprintf(stderr, "index: failed to read %s metadata for "
|
||||
"`%s', skipping!\n", XBPS_PKGPROPS, pkg);
|
||||
|
||||
Reference in New Issue
Block a user