xbps-pkgdb: check rval correctly for xbps_remove_pkg_from_file().
--HG-- extra : convert_revision : ae3f35ef7d01c84c5249554cbb08c5bbc63f17c8
This commit is contained in:
@@ -159,7 +159,7 @@ main(int argc, char **argv)
|
|||||||
if (rv == ENOENT) {
|
if (rv == ENOENT) {
|
||||||
printf("=> ERROR: %s not registered in database.\n",
|
printf("=> ERROR: %s not registered in database.\n",
|
||||||
argv[1]);
|
argv[1]);
|
||||||
} else {
|
} else if (rv != 0) {
|
||||||
printf("=> ERROR: couldn't unregister %s "
|
printf("=> ERROR: couldn't unregister %s "
|
||||||
"from database (%s)\n", argv[1], strerror(rv));
|
"from database (%s)\n", argv[1], strerror(rv));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user