xbps-install: do not fail on update if any of the provided packages are up to date.

addresses #194
This commit is contained in:
Enno Boland 2016-09-14 18:12:44 +02:00
parent 1ffac73f54
commit 7967efc1e0

View File

@ -274,9 +274,10 @@ update_pkg(struct xbps_handle *xhp, const char *pkgname)
int rv;
rv = xbps_transaction_update_pkg(xhp, pkgname);
if (rv == EEXIST)
if (rv == EEXIST) {
printf("Package '%s' is up to date.\n", pkgname);
else if (rv == ENOENT)
return 0;
} else if (rv == ENOENT)
fprintf(stderr, "Package '%s' not found in "
"repository pool.\n", pkgname);
else if (rv == ENODEV)