diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-23 03:33:50 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-23 03:39:32 -0700 |
commit | 67c0d95b81cd733e397a138ae9ca532e87cef125 (patch) | |
tree | 2451a6cc1e5fe9a23757e138526958e322804cb2 | |
parent | Raise default backtrack limit from 5 to 10. (diff) | |
download | portage-67c0d95b81cd733e397a138ae9ca532e87cef125.tar.gz portage-67c0d95b81cd733e397a138ae9ca532e87cef125.tar.bz2 portage-67c0d95b81cd733e397a138ae9ca532e87cef125.zip |
depgraph minimize_children: yield highest versionv2.1.9.22
-rw-r--r-- | pym/_emerge/depgraph.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 35512fc16..eea7964de 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1431,7 +1431,10 @@ class depgraph(object): for atom in chain(conflict_atoms, normal_atoms): child_pkgs = atom_pkg_graph.child_nodes(atom) - yield (atom, child_pkgs[0]) + # if more than one child, yield highest version + if len(child_pkgs) > 1: + child_pkgs.sort() + yield (atom, child_pkgs[-1]) def _queue_disjunctive_deps(self, pkg, dep_root, dep_priority, dep_struct): """ |