diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-10-10 08:52:29 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-12 06:00:47 +0100 |
commit | fb8d44f02032a0c5ef64a84ac898c08104faf797 (patch) | |
tree | 586d23f7cd13c35937e0269967a6c15d6070e3ca /lib/_emerge/depgraph.py | |
parent | CI: Upgrade pypy from 3.9 to 3.10 (diff) | |
download | gentoo-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.py | 2 |
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) |