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
|
@ -241,8 +241,14 @@ main(int argc, char **argv)
|
|||
usage();
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
printf("Package %s updated successfully.\n", argv[1]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue