Use xbps_check_is_installed_pkg(), which performs version checking too.
--HG-- extra : convert_revision : 510a9bceec5e54791be76cc28f36f0e5b6d513eb
This commit is contained in:
@@ -226,7 +226,7 @@ xbps_sort_pkg_deps(prop_dictionary_t chaindeps)
|
||||
/*
|
||||
* If package is installed, pass to the next one.
|
||||
*/
|
||||
if (xbps_check_is_installed_pkgname(pkgname)) {
|
||||
if (xbps_check_is_installed_pkg(rundep) == 0) {
|
||||
free(pkgname);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user