xbps-bin: return rval if 'install' target cannot find a pkg.

This commit is contained in:
Juan RP 2011-02-25 13:41:57 +01:00
parent 2eb7331907
commit f2ef0c0050

View File

@ -345,7 +345,6 @@ xbps_install_new_pkg(const char *pkg)
if (rv == ENOENT) { if (rv == ENOENT) {
fprintf(stderr, "xbps-bin: unable to locate '%s' in " fprintf(stderr, "xbps-bin: unable to locate '%s' in "
"repository pool.\n", pkg); "repository pool.\n", pkg);
rv = -1;
} else { } else {
xbps_error_printf("xbps-bin: unexpected error: %s\n", xbps_error_printf("xbps-bin: unexpected error: %s\n",
strerror(rv)); strerror(rv));