Don't continue installing a binpkg if newest version in repos is already installed.
--HG-- extra : convert_revision : b73376d091fd95f4cfd92cbdba21f4bc93781504
This commit is contained in:
parent
40b62ee70d
commit
0ed055c4eb
3 changed files with 26 additions and 5 deletions
|
@ -214,7 +214,6 @@ main(int argc, char **argv)
|
|||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
/* Install into root directory by default. */
|
||||
rv = xbps_install_binary_pkg(argv[1]);
|
||||
if (rv != 0) {
|
||||
if (rv == EAGAIN) {
|
||||
|
@ -224,6 +223,10 @@ main(int argc, char **argv)
|
|||
dict = xbps_get_pkg_deps_dictionary();
|
||||
if (dict)
|
||||
show_missing_deps(dict, argv[1]);
|
||||
} else if (rv == EEXIST) {
|
||||
printf("Package '%s' is already up to date.\n",
|
||||
argv[1]);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue