Major API/ABI cleanup bringing performance improvements and fixes.
These are the core interfaces in the new API: rpool - Interface to interact with the repository pool. rindex - Interface to interact with repository indexes. pkgdb - Interface to interact with local packages. transaction - Interface to interact with a transaction. This also brings new repository index format, making the index file per architecture and being incompatible with previous versions. The transaction frequency flush option has been removed, and due to the nature of package states it was causing more harm than good. More changes coming soon, but the API shall remain stable from now on.
This commit is contained in:
@@ -158,17 +158,13 @@ list_pkgs_pkgdb(struct xbps_handle *xhp)
|
||||
}
|
||||
|
||||
static int
|
||||
repo_list_uri_cb(struct xbps_handle *xhp,
|
||||
struct xbps_rpool_index *rpi,
|
||||
void *arg,
|
||||
bool *done)
|
||||
repo_list_uri_cb(struct xbps_rindex *rpi, void *arg, bool *done)
|
||||
{
|
||||
(void)xhp;
|
||||
(void)arg;
|
||||
(void)done;
|
||||
|
||||
printf("%s (%zu packages)\n", rpi->uri,
|
||||
(size_t)prop_array_count(rpi->repo));
|
||||
(size_t)prop_dictionary_count(rpi->repod));
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -187,21 +183,32 @@ repo_list(struct xbps_handle *xhp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct fflongest {
|
||||
prop_dictionary_t d;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
static int
|
||||
_find_longest_pkgver_cb(struct xbps_handle *xhp,
|
||||
prop_object_t obj,
|
||||
void *arg,
|
||||
bool *loop_done)
|
||||
{
|
||||
size_t *len = arg;
|
||||
struct fflongest *ffl = arg;
|
||||
prop_dictionary_t pkgd;
|
||||
const char *pkgver;
|
||||
|
||||
(void)xhp;
|
||||
(void)loop_done;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
|
||||
if (*len == 0 || strlen(pkgver) > *len)
|
||||
*len = strlen(pkgver);
|
||||
if (prop_object_type(obj) == PROP_TYPE_DICT_KEYSYM)
|
||||
pkgd = prop_dictionary_get_keysym(ffl->d, obj);
|
||||
else
|
||||
pkgd = obj;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver);
|
||||
if (ffl->len == 0 || strlen(pkgver) > ffl->len)
|
||||
ffl->len = strlen(pkgver);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -209,16 +216,24 @@ _find_longest_pkgver_cb(struct xbps_handle *xhp,
|
||||
size_t
|
||||
find_longest_pkgver(struct xbps_handle *xhp, prop_object_t o)
|
||||
{
|
||||
size_t len = 0;
|
||||
struct fflongest ffl;
|
||||
|
||||
if (prop_object_type(o) == PROP_TYPE_ARRAY)
|
||||
(void)xbps_callback_array_iter(xhp, o,
|
||||
_find_longest_pkgver_cb, &len);
|
||||
else
|
||||
ffl.d = o;
|
||||
ffl.len = 0;
|
||||
|
||||
if (prop_object_type(o) == PROP_TYPE_DICTIONARY) {
|
||||
prop_array_t array;
|
||||
|
||||
array = prop_dictionary_all_keys(o);
|
||||
(void)xbps_callback_array_iter(xhp, array,
|
||||
_find_longest_pkgver_cb, &ffl);
|
||||
prop_object_release(array);
|
||||
} else {
|
||||
(void)xbps_pkgdb_foreach_cb(xhp,
|
||||
_find_longest_pkgver_cb, &len);
|
||||
_find_longest_pkgver_cb, &ffl);
|
||||
}
|
||||
|
||||
return len;
|
||||
return ffl.len;
|
||||
}
|
||||
|
||||
int
|
||||
|
@@ -95,7 +95,7 @@ ownedby_pkgdb_cb(struct xbps_handle *xhp, prop_object_t obj, void *arg, bool *do
|
||||
(void)done;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
|
||||
pkgmetad = xbps_metadir_get_pkgd(xhp, pkgname);
|
||||
pkgmetad = xbps_pkgdb_get_pkg_metadata(xhp, pkgname);
|
||||
|
||||
files_keys = prop_dictionary_all_keys(pkgmetad);
|
||||
for (i = 0; i < prop_array_count(files_keys); i++) {
|
||||
@@ -122,26 +122,21 @@ ownedby(struct xbps_handle *xhp, int npatterns, char **patterns)
|
||||
}
|
||||
|
||||
static void
|
||||
repo_match_files_by_pattern(struct xbps_handle *xhp,
|
||||
prop_dictionary_t pkg_filesd,
|
||||
repo_match_files_by_pattern(prop_dictionary_t pkgd,
|
||||
struct ffdata *ffd)
|
||||
{
|
||||
prop_array_t array;
|
||||
const char *filestr, *pkgver, *arch;
|
||||
const char *filestr, *pkgver;
|
||||
size_t i;
|
||||
int x;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(pkg_filesd, "architecture", &arch);
|
||||
if (!xbps_pkg_arch_match(xhp, arch, NULL))
|
||||
return;
|
||||
|
||||
array = prop_dictionary_get(pkg_filesd, "files");
|
||||
array = prop_dictionary_get(pkgd, "files");
|
||||
for (i = 0; i < prop_array_count(array); i++) {
|
||||
prop_array_get_cstring_nocopy(array, i, &filestr);
|
||||
for (x = 0; x < ffd->npatterns; x++) {
|
||||
if ((xbps_pkgpattern_match(filestr, ffd->patterns[x])) ||
|
||||
(strcmp(filestr, ffd->patterns[x]) == 0)) {
|
||||
prop_dictionary_get_cstring_nocopy(pkg_filesd,
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
"pkgver", &pkgver);
|
||||
printf("%s: %s (%s)\n",
|
||||
pkgver, filestr, ffd->repouri);
|
||||
@@ -151,22 +146,21 @@ repo_match_files_by_pattern(struct xbps_handle *xhp,
|
||||
}
|
||||
|
||||
static int
|
||||
repo_ownedby_cb(struct xbps_handle *xhp,
|
||||
struct xbps_rpool_index *rpi,
|
||||
void *arg,
|
||||
bool *done)
|
||||
repo_ownedby_cb(struct xbps_rindex *rpi, void *arg, bool *done)
|
||||
{
|
||||
prop_array_t idxfiles;
|
||||
prop_array_t allkeys;
|
||||
prop_dictionary_t pkgd, idxfiles;
|
||||
prop_dictionary_keysym_t ksym;
|
||||
struct ffdata *ffd = arg;
|
||||
char *plist;
|
||||
unsigned int i;
|
||||
|
||||
(void)done;
|
||||
|
||||
if ((plist = xbps_pkg_index_files_plist(xhp, rpi->uri)) == NULL)
|
||||
if ((plist = xbps_pkg_index_files_plist(rpi->xhp, rpi->uri)) == NULL)
|
||||
return ENOMEM;
|
||||
|
||||
if ((idxfiles = prop_array_internalize_from_zfile(plist)) == NULL) {
|
||||
if ((idxfiles = prop_dictionary_internalize_from_zfile(plist)) == NULL) {
|
||||
free(plist);
|
||||
if (errno == ENOENT) {
|
||||
fprintf(stderr, "%s: index-files missing! "
|
||||
@@ -178,11 +172,13 @@ repo_ownedby_cb(struct xbps_handle *xhp,
|
||||
free(plist);
|
||||
ffd->repouri = rpi->uri;
|
||||
|
||||
for (i = 0; i < prop_array_count(idxfiles); i++)
|
||||
repo_match_files_by_pattern(xhp,
|
||||
prop_array_get(idxfiles, i), ffd);
|
||||
allkeys = prop_dictionary_all_keys(idxfiles);
|
||||
for (i = 0; i < prop_array_count(allkeys); i++) {
|
||||
ksym = prop_array_get(allkeys, i);
|
||||
pkgd = prop_dictionary_get_keysym(idxfiles, ksym);
|
||||
repo_match_files_by_pattern(pkgd, ffd);
|
||||
}
|
||||
|
||||
prop_object_release(idxfiles);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -195,8 +191,10 @@ repo_ownedby(struct xbps_handle *xhp, int npatterns, char **patterns)
|
||||
ffd.npatterns = npatterns;
|
||||
ffd.patterns = patterns;
|
||||
|
||||
if ((rv = xbps_rpool_sync(xhp, XBPS_PKGINDEX_FILES, NULL)) != 0)
|
||||
if ((rv = xbps_rpool_sync(xhp, XBPS_PKGINDEX_FILES, NULL)) != 0) {
|
||||
fprintf(stderr, "xbps-query: failed to sync rindex "
|
||||
"files: %s\n", strerror(rv));
|
||||
return rv;
|
||||
|
||||
}
|
||||
return xbps_rpool_foreach(xhp, repo_ownedby_cb, &ffd);
|
||||
}
|
||||
|
@@ -52,20 +52,17 @@ struct repo_search_data {
|
||||
};
|
||||
|
||||
static int
|
||||
repo_longest_pkgver(struct xbps_handle *xhp,
|
||||
struct xbps_rpool_index *rpi,
|
||||
void *arg,
|
||||
bool *done)
|
||||
repo_longest_pkgver(struct xbps_rindex *rpi, void *arg, bool *done)
|
||||
{
|
||||
size_t *len = arg, olen = 0;
|
||||
|
||||
(void)done;
|
||||
|
||||
if (*len == 0) {
|
||||
*len = find_longest_pkgver(xhp, rpi->repo);
|
||||
*len = find_longest_pkgver(rpi->xhp, rpi->repod);
|
||||
return 0;
|
||||
}
|
||||
olen = find_longest_pkgver(xhp, rpi->repo);
|
||||
olen = find_longest_pkgver(rpi->xhp, rpi->repod);
|
||||
if (olen > *len)
|
||||
*len = olen;
|
||||
|
||||
@@ -83,75 +80,66 @@ repo_find_longest_pkgver(struct xbps_handle *xhp)
|
||||
}
|
||||
|
||||
static int
|
||||
show_pkg_namedesc(struct xbps_handle *xhp,
|
||||
prop_object_t obj,
|
||||
void *arg,
|
||||
bool *loop_done)
|
||||
repo_search_pkgs_cb(struct xbps_rindex *rpi, void *arg, bool *done)
|
||||
{
|
||||
prop_array_t allkeys;
|
||||
prop_dictionary_t pkgd;
|
||||
prop_dictionary_keysym_t ksym;
|
||||
struct repo_search_data *rsd = arg;
|
||||
const char *pkgver, *pkgname, *desc, *arch, *inststr;
|
||||
const char *pkgver, *pkgname, *desc, *inststr;
|
||||
char *tmp = NULL, *out = NULL;
|
||||
size_t x, len;
|
||||
int i;
|
||||
size_t i, j, len;
|
||||
int x;
|
||||
|
||||
(void)xhp;
|
||||
(void)loop_done;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch);
|
||||
if (!xbps_pkg_arch_match(xhp, arch, NULL))
|
||||
return 0;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
|
||||
prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
|
||||
prop_dictionary_get_cstring_nocopy(obj, "short_desc", &desc);
|
||||
|
||||
for (i = 0; i < rsd->npatterns; i++) {
|
||||
if ((xbps_pkgpattern_match(pkgver, rsd->patterns[i]) == 1) ||
|
||||
(xbps_pkgpattern_match(desc, rsd->patterns[i]) == 1) ||
|
||||
(strcasecmp(pkgname, rsd->patterns[i]) == 0) ||
|
||||
(strcasestr(pkgver, rsd->patterns[i])) ||
|
||||
(strcasestr(desc, rsd->patterns[i]))) {
|
||||
tmp = calloc(1, rsd->pkgver_len + 1);
|
||||
assert(tmp);
|
||||
memcpy(tmp, pkgver, rsd->pkgver_len);
|
||||
for (x = strlen(tmp); x < rsd->pkgver_len; x++)
|
||||
tmp[x] = ' ';
|
||||
|
||||
tmp[x] = '\0';
|
||||
if (xbps_pkgdb_get_pkgd_by_pkgver(xhp, pkgver))
|
||||
inststr = "[*]";
|
||||
else
|
||||
inststr = "[-]";
|
||||
|
||||
len = strlen(inststr) + strlen(tmp) + strlen(desc) + 1;
|
||||
if (len > rsd->maxcols) {
|
||||
out = malloc(rsd->maxcols+1);
|
||||
assert(out);
|
||||
snprintf(out, rsd->maxcols-3, "%s %s %s",
|
||||
inststr, tmp, desc);
|
||||
strncat(out, "...", rsd->maxcols);
|
||||
out[rsd->maxcols+1] = '\0';
|
||||
printf("%s\n", out);
|
||||
free(out);
|
||||
} else {
|
||||
printf("%s %s %s\n", inststr, tmp, desc);
|
||||
}
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
static int
|
||||
repo_search_pkgs_cb(struct xbps_handle *xhp,
|
||||
struct xbps_rpool_index *rpi,
|
||||
void *arg,
|
||||
bool *done)
|
||||
{
|
||||
struct repo_search_data *rsd = arg;
|
||||
(void)done;
|
||||
|
||||
(void)xbps_callback_array_iter(xhp, rpi->repo, show_pkg_namedesc, rsd);
|
||||
allkeys = prop_dictionary_all_keys(rpi->repod);
|
||||
for (i = 0; i < prop_array_count(allkeys); i++) {
|
||||
ksym = prop_array_get(allkeys, i);
|
||||
pkgd = prop_dictionary_get_keysym(rpi->repod, ksym);
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(pkgd, "pkgname", &pkgname);
|
||||
prop_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver);
|
||||
prop_dictionary_get_cstring_nocopy(pkgd, "short_desc", &desc);
|
||||
|
||||
for (x = 0; x < rsd->npatterns; x++) {
|
||||
if ((xbps_pkgpattern_match(pkgver, rsd->patterns[x])) ||
|
||||
(xbps_pkgpattern_match(desc, rsd->patterns[x])) ||
|
||||
(strcasecmp(pkgname, rsd->patterns[x]) == 0) ||
|
||||
(strcasestr(pkgver, rsd->patterns[x])) ||
|
||||
(strcasestr(desc, rsd->patterns[x]))) {
|
||||
tmp = calloc(1, rsd->pkgver_len + 1);
|
||||
assert(tmp);
|
||||
memcpy(tmp, pkgver, rsd->pkgver_len);
|
||||
for (j = strlen(tmp); j < rsd->pkgver_len; j++)
|
||||
tmp[j] = ' ';
|
||||
|
||||
tmp[j] = '\0';
|
||||
if (xbps_pkgdb_get_pkg(rpi->xhp, pkgver))
|
||||
inststr = "[*]";
|
||||
else
|
||||
inststr = "[-]";
|
||||
|
||||
len = strlen(inststr) + strlen(tmp) +
|
||||
strlen(desc) + 1;
|
||||
if (len > rsd->maxcols) {
|
||||
out = malloc(rsd->maxcols+1);
|
||||
assert(out);
|
||||
snprintf(out, rsd->maxcols-3, "%s %s %s",
|
||||
inststr, tmp, desc);
|
||||
strncat(out, "...", rsd->maxcols);
|
||||
out[rsd->maxcols+1] = '\0';
|
||||
printf("%s\n", out);
|
||||
free(out);
|
||||
} else {
|
||||
printf("%s %s %s\n", inststr,
|
||||
tmp, desc);
|
||||
}
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
prop_object_release(allkeys);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -41,10 +41,7 @@ show_pkg_deps(struct xbps_handle *xhp, const char *pkgname)
|
||||
|
||||
assert(pkgname != NULL);
|
||||
|
||||
/*
|
||||
* Check for props.plist metadata file.
|
||||
*/
|
||||
propsd = xbps_metadir_get_pkgd(xhp, pkgname);
|
||||
propsd = xbps_pkgdb_get_pkg_metadata(xhp, pkgname);
|
||||
if (propsd == NULL)
|
||||
return ENOENT;
|
||||
|
||||
@@ -55,14 +52,14 @@ show_pkg_deps(struct xbps_handle *xhp, const char *pkgname)
|
||||
}
|
||||
|
||||
int
|
||||
show_pkg_revdeps(struct xbps_handle *xhp, const char *pkgname)
|
||||
show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg)
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
int rv = 0;
|
||||
|
||||
pkgd = xbps_find_virtualpkg_dict_installed(xhp, pkgname, false);
|
||||
pkgd = xbps_pkgdb_get_virtualpkg(xhp, pkg);
|
||||
if (pkgd == NULL) {
|
||||
pkgd = xbps_find_pkg_dict_installed(xhp, pkgname, false);
|
||||
pkgd = xbps_pkgdb_get_pkg(xhp, pkg);
|
||||
if (pkgd == NULL)
|
||||
return ENOENT;
|
||||
}
|
||||
@@ -77,11 +74,7 @@ repo_show_pkg_deps(struct xbps_handle *xhp, const char *pattern)
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
|
||||
if (xbps_pkgpattern_version(pattern))
|
||||
pkgd = xbps_rpool_find_pkg(xhp, pattern, true, false);
|
||||
else
|
||||
pkgd = xbps_rpool_find_pkg(xhp, pattern, false, true);
|
||||
|
||||
pkgd = xbps_rpool_get_pkg(xhp, pattern);
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
|
||||
@@ -92,20 +85,20 @@ repo_show_pkg_deps(struct xbps_handle *xhp, const char *pattern)
|
||||
}
|
||||
|
||||
static int
|
||||
repo_revdeps_cb(struct xbps_handle *xhp,
|
||||
struct xbps_rpool_index *rpi,
|
||||
void *arg,
|
||||
bool *done)
|
||||
repo_revdeps_cb(struct xbps_rindex *rpi, void *arg, bool *done)
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
prop_array_t pkgdeps;
|
||||
prop_array_t allkeys, pkgdeps;
|
||||
prop_dictionary_keysym_t ksym;
|
||||
const char *pkgver, *arch, *pattern = arg;
|
||||
size_t i;
|
||||
|
||||
(void)done;
|
||||
|
||||
for (i = 0; i < prop_array_count(rpi->repo); i++) {
|
||||
pkgd = prop_array_get(rpi->repo, i);
|
||||
allkeys = prop_dictionary_all_keys(rpi->repod);
|
||||
for (i = 0; i < prop_array_count(allkeys); i++) {
|
||||
ksym = prop_array_get(allkeys, i);
|
||||
pkgd = prop_dictionary_get_keysym(rpi->repod, ksym);
|
||||
pkgdeps = prop_dictionary_get(pkgd, "run_depends");
|
||||
if (pkgdeps == NULL || prop_array_count(pkgdeps) == 0)
|
||||
continue;
|
||||
@@ -113,13 +106,14 @@ repo_revdeps_cb(struct xbps_handle *xhp,
|
||||
if (xbps_match_pkgdep_in_array(pkgdeps, pattern)) {
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
"architecture", &arch);
|
||||
if (xbps_pkg_arch_match(xhp, arch, NULL)) {
|
||||
if (xbps_pkg_arch_match(rpi->xhp, arch, NULL)) {
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
"pkgver", &pkgver);
|
||||
printf("%s\n", pkgver);
|
||||
}
|
||||
}
|
||||
}
|
||||
prop_object_release(allkeys);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -133,7 +127,7 @@ repo_show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg)
|
||||
if (xbps_pkg_version(pkg))
|
||||
pkgver = pkg;
|
||||
else {
|
||||
pkgd = xbps_rpool_find_pkg(xhp, pkg, false, false);
|
||||
pkgd = xbps_rpool_get_pkg(xhp, pkg);
|
||||
if (pkgd == NULL)
|
||||
return ENOENT;
|
||||
prop_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver);
|
||||
|
@@ -216,21 +216,20 @@ show_pkg_files(prop_dictionary_t filesd)
|
||||
|
||||
int
|
||||
show_pkg_info_from_metadir(struct xbps_handle *xhp,
|
||||
const char *pkgname,
|
||||
const char *pkg,
|
||||
const char *option)
|
||||
{
|
||||
prop_dictionary_t d, pkgdb_d;
|
||||
const char *instdate, *pname;
|
||||
const char *instdate;
|
||||
bool autoinst;
|
||||
|
||||
d = xbps_metadir_get_pkgd(xhp, pkgname);
|
||||
if (d == NULL)
|
||||
pkgdb_d = xbps_pkgdb_get_pkg(xhp, pkg);
|
||||
if (pkgdb_d == NULL)
|
||||
return ENOENT;
|
||||
|
||||
prop_dictionary_get_cstring_nocopy(d, "pkgname", &pname);
|
||||
pkgdb_d = xbps_pkgdb_get_pkgd(xhp, pname, false);
|
||||
if (pkgdb_d == NULL)
|
||||
return EINVAL;
|
||||
d = xbps_pkgdb_get_pkg_metadata(xhp, pkg);
|
||||
if (d == NULL)
|
||||
return ENOENT;
|
||||
|
||||
if (prop_dictionary_get_cstring_nocopy(pkgdb_d,
|
||||
"install-date", &instdate))
|
||||
@@ -249,12 +248,12 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp,
|
||||
}
|
||||
|
||||
int
|
||||
show_pkg_files_from_metadir(struct xbps_handle *xhp, const char *pkgname)
|
||||
show_pkg_files_from_metadir(struct xbps_handle *xhp, const char *pkg)
|
||||
{
|
||||
prop_dictionary_t d;
|
||||
int rv = 0;
|
||||
|
||||
d = xbps_metadir_get_pkgd(xhp, pkgname);
|
||||
d = xbps_pkgdb_get_pkg_metadata(xhp, pkg);
|
||||
if (d == NULL)
|
||||
return ENOENT;
|
||||
|
||||
@@ -270,11 +269,7 @@ repo_show_pkg_info(struct xbps_handle *xhp,
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
|
||||
if (xbps_pkgpattern_version(pattern))
|
||||
pkgd = xbps_rpool_find_pkg(xhp, pattern, true, false);
|
||||
else
|
||||
pkgd = xbps_rpool_find_pkg(xhp, pattern, false, true);
|
||||
|
||||
pkgd = xbps_rpool_get_pkg(xhp, pattern);
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
|
||||
@@ -291,8 +286,7 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
|
||||
pkgd = xbps_rpool_dictionary_metadata_plist(xhp, pkg,
|
||||
"./files.plist");
|
||||
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "./files.plist");
|
||||
if (pkgd == NULL) {
|
||||
if (errno != ENOTSUP && errno != ENOENT) {
|
||||
fprintf(stderr, "Unexpected error: %s\n",
|
||||
|
Reference in New Issue
Block a user