Gratuitous ABI break: xbps_binpkg_get_xxx() -> xbps_archive_fetch_xxx().

This commit is contained in:
Juan RP
2014-11-21 09:51:57 +01:00
parent 7e6b38f951
commit 1789e527a9
7 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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);