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:
parent
7b728f5ac0
commit
44692f28d8
@ -286,7 +286,7 @@ update_pkg(struct xbps_handle *xhp, const char *pkgname)
|
|||||||
rv = xbps_transaction_update_pkg(xhp, pkgname);
|
rv = xbps_transaction_update_pkg(xhp, pkgname);
|
||||||
if (rv == EEXIST) {
|
if (rv == EEXIST) {
|
||||||
printf("Package '%s' is up to date.\n", pkgname);
|
printf("Package '%s' is up to date.\n", pkgname);
|
||||||
return 0;
|
return EEXIST;
|
||||||
} else if (rv == ENOENT)
|
} else if (rv == ENOENT)
|
||||||
fprintf(stderr, "Package '%s' not found in "
|
fprintf(stderr, "Package '%s' not found in "
|
||||||
"repository pool.\n", pkgname);
|
"repository pool.\n", pkgname);
|
||||||
|
Loading…
Reference in New Issue
Block a user