lib/depends.c: minor performance change.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028021652-ns74gpr86ohfok9a
This commit is contained in:
Juan RP 2009-10-28 03:16:52 +01:00
parent 4b99264063
commit 0024221279

View File

@ -276,15 +276,14 @@ find_repo_deps(prop_dictionary_t master, prop_dictionary_t repo,
*/
while ((obj = prop_object_iterator_next(iter))) {
reqpkg = prop_string_cstring_nocopy(obj);
pkgname = xbps_get_pkg_name(reqpkg);
reqvers = xbps_get_pkg_version(reqpkg);
/*
* Check if required dep is satisfied and installed.
*/
if (xbps_check_is_installed_pkg(reqpkg) >= 0) {
free(pkgname);
if (xbps_check_is_installed_pkg(reqpkg) >= 0)
continue;
}
pkgname = xbps_get_pkg_name(reqpkg);
reqvers = xbps_get_pkg_version(reqpkg);
/*
* Check if package is already added in the
* array of unsorted deps.