summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-23 03:33:50 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-23 03:33:50 -0700
commit386026046ddf6876e3b1d0910583d97659fe5afe (patch)
tree64ce69e6efd3d83499250c8fd57f08660fd973c3
parentb51e0c98b39be6b95de550042d7d9e1c2b6df293 (diff)
downloadportage-2.2.0_alpha1.tar.gz
portage-2.2.0_alpha1.tar.bz2
portage-2.2.0_alpha1.zip
depgraph minimize_children: yield highest versionv2.2.0_alpha1
-rw-r--r--pym/_emerge/depgraph.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 473c9762c..f21d66d2b 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1414,7 +1414,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):
"""