xbps-bin: rework error message if pkg is already up to date while updating.
--HG-- extra : convert_revision : cea191aad5a2c4d96764c35c04e2d4af8f82b7d7
This commit is contained in:
parent
e9a4eacef8
commit
fda979d8c5
1 changed files with 7 additions and 1 deletions
|
@ -241,8 +241,14 @@ main(int argc, char **argv)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
rv = xbps_install_binary_pkg(argv[1], true);
|
rv = xbps_install_binary_pkg(argv[1], true);
|
||||||
if (rv != 0)
|
if (rv != 0) {
|
||||||
|
if (rv == EEXIST) {
|
||||||
|
printf("Package %s is already up to date.\n",
|
||||||
|
argv[1]);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
}
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
printf("Package %s updated successfully.\n", argv[1]);
|
printf("Package %s updated successfully.\n", argv[1]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue