From 5ff827ba5d086609cddd04bf9bf610de0445656b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Aug 2009 06:10:37 +0000 Subject: [PATCH] Fix the code from bug #275796 to ensure that choices always go into the preferred_in_graph slot when appropriate. svn path=/main/trunk/; revision=14164 --- pym/portage/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 27fa52cc2..8669dd7f8 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7705,7 +7705,7 @@ def dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None): not slot_atom.startswith("virtual/"): all_installed_slots = False break - if all_installed: + if graph_db is None and all_installed: if all_installed_slots: preferred_installed.append(this_choice) else: @@ -7750,7 +7750,13 @@ def dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None): else: preferred_in_graph.append(this_choice) else: - preferred_non_installed.append(this_choice) + if all_installed: + if all_installed_slots: + preferred_installed.append(this_choice) + else: + preferred_any_slot.append(this_choice) + else: + preferred_non_installed.append(this_choice) else: other.append(this_choice) -- 2.26.2