.BR \-\-backtrack=COUNT
Specifies an integer number of times to backtrack if
dependency calculation fails due to a conflict or an
-unsatisfied dependency (default: \'5\').
+unsatisfied dependency (default: \'10\').
.TP
.BR "\-\-binpkg\-respect\-use < y | n >"
Tells emerge to ignore binary packages if their use flags
def _backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, spinner):
- max_retries = myopts.get('--backtrack', 5)
- max_depth = myopts.get('--backtrack', 5)
+ max_retries = myopts.get('--backtrack', 10)
+ max_depth = max(1, (max_retries + 1) / 2)
allow_backtracking = max_retries > 0
backtracker = Backtracker(max_depth)
backtracked = 0
print(" " + green("--backtrack") + " " + turquoise("COUNT"))
desc = "Specifies an integer number of times to backtrack if " + \
"dependency calculation fails due to a conflict or an " + \
- "unsatisfied dependency (default: '5')."
+ "unsatisfied dependency (default: '10')."
for line in wrap(desc, desc_width):
print(desc_indent + line)
print()