xbps-install: do not fail on update if any of the provided packages are up to date.
addresses #194
This commit is contained in:
parent
1ffac73f54
commit
7967efc1e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user