bin/xbps-install: update_pkg return EEXIST if package is up to date

makes 58509996aa work for
xbps-install -u <pkg>
This commit is contained in:
Johannes Brechtmann 2019-06-26 22:51:41 +02:00 committed by Juan RP
parent 7b728f5ac0
commit 44692f28d8

View File

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