xbps-bin: fix a broken condition.

This commit is contained in:
Juan RP 2011-11-27 09:29:13 +01:00
parent 9d731ffe09
commit 6229e06a67

View File

@ -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;