Return appropiate value in xbps_check_is_installed_pkg().
Return -1 if package is not installed or dependency not satisfied. Return 0 if same version required is already installed. Return 1 if installed version is greater than required. --HG-- extra : convert_revision : 359b79cbe809e1818fe999dc1d55da7e635dbe44
This commit is contained in:
@@ -210,7 +210,7 @@ xbps_sort_pkg_deps(prop_dictionary_t chaindeps)
|
||||
/*
|
||||
* If package is installed, pass to the next one.
|
||||
*/
|
||||
if (xbps_check_is_installed_pkg(rundep) == 0) {
|
||||
if (xbps_check_is_installed_pkg(rundep) >= 0) {
|
||||
free(pkgname);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user