bin/: use xbps logging functions more

This commit is contained in:
classabbyamp
2023-02-09 04:54:36 -05:00
committed by Duncan Overbruck
parent 7391a7b213
commit 1271a3dbed
19 changed files with 94 additions and 95 deletions

View File

@@ -270,7 +270,7 @@ main(int argc, char **argv)
}
if (!drun && (rv = xbps_pkgdb_lock(&xh)) != 0) {
fprintf(stderr, "failed to lock pkgdb: %s\n", strerror(rv));
xbps_error_printf("failed to lock pkgdb: %s\n", strerror(rv));
exit(rv);
}
@@ -278,7 +278,7 @@ main(int argc, char **argv)
if ((rv = xbps_transaction_autoremove_pkgs(&xh)) != 0) {
xbps_end(&xh);
if (rv != ENOENT) {
fprintf(stderr, "Failed to queue package "
xbps_error_printf("Failed to queue package "
"orphans: %s\n", strerror(rv));
exit(EXIT_FAILURE);
}