summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-14 19:10:02 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-15 03:05:38 -0700
commit0e37c560d8c1f03d100214a6df5db47391c0709d (patch)
treee5e780d3812db00a9bb2cfe0ad91224ad04351ca
parenta59190f10af068567670224418bae88b6072b809 (diff)
downloadportage-0e37c560d8c1f03d100214a6df5db47391c0709d.tar.gz
portage-0e37c560d8c1f03d100214a6df5db47391c0709d.tar.bz2
portage-0e37c560d8c1f03d100214a6df5db47391c0709d.zip
Optimize uninstall selection more.
-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 6744d9072..5a7a98393 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -4275,6 +4275,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