bin/: use xbps logging functions more
This commit is contained in:
committed by
Duncan Overbruck
parent
7391a7b213
commit
1271a3dbed
@@ -247,14 +247,14 @@ search(struct xbps_handle *xhp, bool repo_mode, const char *pat, const char *pro
|
||||
if (repo_mode) {
|
||||
rv = xbps_rpool_foreach(xhp, search_repo_cb, &sd);
|
||||
if (rv != 0 && rv != ENOTSUP) {
|
||||
fprintf(stderr, "Failed to initialize rpool: %s\n",
|
||||
xbps_error_printf("Failed to initialize rpool: %s\n",
|
||||
strerror(rv));
|
||||
return rv;
|
||||
}
|
||||
} else {
|
||||
rv = xbps_pkgdb_foreach_cb(xhp, search_array_cb, &sd);
|
||||
if (rv != 0) {
|
||||
fprintf(stderr, "Failed to initialize pkgdb: %s\n",
|
||||
xbps_error_printf("Failed to initialize pkgdb: %s\n",
|
||||
strerror(rv));
|
||||
return rv;
|
||||
}
|
||||
|
@@ -332,7 +332,7 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
||||
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "/files.plist");
|
||||
if (pkgd == NULL) {
|
||||
if (errno != ENOTSUP && errno != ENOENT) {
|
||||
fprintf(stderr, "Unexpected error: %s\n", strerror(errno));
|
||||
xbps_error_printf("Unexpected error: %s\n", strerror(errno));
|
||||
}
|
||||
return errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user