From: Zac Medico Date: Sat, 21 Nov 2009 04:05:30 +0000 (-0000) Subject: Bug #293730 - Fix bad || choices triggered in some cases inside X-Git-Tag: v2.1.7.6~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ccca8ab161b499c6aa467bd405d10b419cd3b349;p=portage.git Bug #293730 - Fix bad || choices triggered in some cases inside _dep_check_composite_db._visible() when --update is not enabled. (trunk r14854) svn path=/main/branches/2.1.7/; revision=14865 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 446eb4a3f..2cb10650a 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5278,7 +5278,10 @@ class _dep_check_composite_db(portage.dbapi): # conflicts). highest_visible, in_graph = self._depgraph._select_package( self._root, pkg.slot_atom) - if pkg != highest_visible: + # 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: return False elif in_graph != pkg: # Mask choices for packages that would trigger a slot