aboutsummaryrefslogtreecommitdiffstats
path: root/lib/_emerge/depgraph.py
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2023-10-10 08:52:29 +0200
committerSam James <sam@gentoo.org>2023-10-12 06:00:47 +0100
commitfb8d44f02032a0c5ef64a84ac898c08104faf797 (patch)
tree586d23f7cd13c35937e0269967a6c15d6070e3ca /lib/_emerge/depgraph.py
parentCI: Upgrade pypy from 3.9 to 3.10 (diff)
downloadgentoo-portage-fb8d44f02032a0c5ef64a84ac898c08104faf797.tar.xz
gentoo-portage-fb8d44f02032a0c5ef64a84ac898c08104faf797.zip
emerge: Increase default number of maximum backtrack attempts from 10 to 20
Experience shows that 10 is too low and that in some cases a slighlty higher number results in a successful dependency calculation. Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/portage/pull/1127 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index a0d69ff30578..ad835ac06a05 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -11459,7 +11459,7 @@ def _backtrack_depgraph(
) -> tuple[Any, depgraph, list[str], int, int]:
debug = "--debug" in myopts
mydepgraph = None
- max_retries = myopts.get("--backtrack", 10)
+ max_retries = myopts.get("--backtrack", 20)
max_depth = max(1, (max_retries + 1) // 2)
allow_backtracking = max_retries > 0
backtracker = Backtracker(max_depth)