summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/depgraph.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index adef1193d..adabc97d4 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -4321,6 +4321,11 @@ class depgraph(object):
min_parent_deps = len(parent_deps)
uninst_task = task
+ if uninst_task is not None and min_parent_deps == 1:
+ # This is the best possible result, so so abort search
+ # now in order avoid wasting any more cpu time.
+ break
+
if uninst_task is not None:
# The uninstall is performed only after blocking
# packages have been merged on top of it. File