Use xbps_check_is_installed_pkg(), which performs version checking too.

--HG--
extra : convert_revision : 510a9bceec5e54791be76cc28f36f0e5b6d513eb
This commit is contained in:
Juan RP 2009-02-12 22:51:46 +01:00
parent 774d14ac93
commit f3f5192d5b
2 changed files with 12 additions and 3 deletions

View file

@ -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;
}