sortdeps.c: use a high priority for packages that don't have run_depends.

--HG--
extra : convert_revision : b7f546d5222537401854bc80bb61cfb652c442dd
This commit is contained in:
Juan RP 2009-03-01 17:33:19 +01:00
parent 01a12891ef
commit ef6b5290af

View file

@ -193,8 +193,10 @@ xbps_sort_pkg_deps(prop_dictionary_t chaindeps)
prop_dictionary_get_cstring_nocopy(sdep->dict,
"pkgname", &curpkg);
rundeps_array = prop_dictionary_get(sdep->dict, "run_depends");
if (rundeps_array == NULL)
if (rundeps_array == NULL) {
sdep->prio += 4;
continue;
}
iter = prop_array_iterator(rundeps_array);
if (iter == NULL) {