Add missing slot comparison when looking for higher slot in
authorZac Medico <zmedico@gentoo.org>
Mon, 28 Apr 2008 01:02:31 +0000 (01:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 Apr 2008 01:02:31 +0000 (01:02 -0000)
_iter_atoms_for_pkg().

svn path=/main/trunk/; revision=10008

pym/_emerge/__init__.py

index ee2389129dcfaf59c626174e21804ab7771d46d8..06060b0fdc301c39e52d3c7984bd10a76c08cc4a 100644 (file)
@@ -2267,8 +2267,9 @@ class depgraph(object):
                                        # This is descending order, and we're not
                                        # interested in any versions <= pkg given.
                                        break
-                               higher_slot = visible_pkg
-                               break
+                               if pkg.slot_atom != visible_pkg.slot_atom:
+                                       higher_slot = visible_pkg
+                                       break
                        if higher_slot is not None:
                                continue
                        for arg in atom_arg_map[(atom, pkg.root)]: