lib/depends.c: minor performance change.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091028021652-ns74gpr86ohfok9a
This commit is contained in:
parent
4b99264063
commit
0024221279
@ -276,15 +276,14 @@ find_repo_deps(prop_dictionary_t master, prop_dictionary_t repo,
|
|||||||
*/
|
*/
|
||||||
while ((obj = prop_object_iterator_next(iter))) {
|
while ((obj = prop_object_iterator_next(iter))) {
|
||||||
reqpkg = prop_string_cstring_nocopy(obj);
|
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.
|
* Check if required dep is satisfied and installed.
|
||||||
*/
|
*/
|
||||||
if (xbps_check_is_installed_pkg(reqpkg) >= 0) {
|
if (xbps_check_is_installed_pkg(reqpkg) >= 0)
|
||||||
free(pkgname);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
pkgname = xbps_get_pkg_name(reqpkg);
|
||||||
|
reqvers = xbps_get_pkg_version(reqpkg);
|
||||||
/*
|
/*
|
||||||
* Check if package is already added in the
|
* Check if package is already added in the
|
||||||
* array of unsorted deps.
|
* array of unsorted deps.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user