xbps-bin: fix a broken condition.
This commit is contained in:
parent
9d731ffe09
commit
6229e06a67
@ -332,7 +332,7 @@ remove_pkg(const char *pkgname, bool purge, bool recursive)
|
||||
else if (rv == ENOENT) {
|
||||
printf("Package `%s' is not currently installed.\n", pkgname);
|
||||
return 0;
|
||||
} else {
|
||||
} else if (rv != 0) {
|
||||
xbps_error_printf("Failed to queue `%s' for removing: %s\n",
|
||||
pkgname, strerror(rv));
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user