composite_db._visible: fix AttributeError
authorZac Medico <zmedico@gentoo.org>
Thu, 3 May 2012 01:32:33 +0000 (18:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 3 May 2012 01:32:33 +0000 (18:32 -0700)
pym/_emerge/depgraph.py

index e6245598fc904fca301b176e7fcec4c3ac0b60cf..dfc9be9d020a7d9ec68f9628d6c51ba5cdc371e8 100644 (file)
@@ -6858,7 +6858,7 @@ class _dep_check_composite_db(dbapi):
                        # Note: highest_visible is not necessarily the real highest
                        # visible, especially when --update is not enabled, so use
                        # < operator instead of !=.
-                       if pkg < highest_visible:
+                       if highest_visible is not None and pkg < highest_visible:
                                return False
                elif in_graph != pkg:
                        # Mask choices for packages that would trigger a slot