summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py10
1 files 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)