Disable backtracking in the depgraph constructor call when appropriate.
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:05:19 +0000 (04:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:05:19 +0000 (04:05 -0000)
(trunk r14853)

svn path=/main/branches/2.1.7/; revision=14864

pym/_emerge/depgraph.py

index 3efc3190e4f7772203ba8bf8248b30f4d3df5ab0..446eb4a3f0594859835406ca7f7a0fb239ba704e 100644 (file)
@@ -5419,7 +5419,7 @@ def _backtrack_depgraph(settings, trees, myopts, myparams,
 
        backtrack_max = myopts.get('--backtrack', 5)
        runtime_pkg_mask = None
-       allow_backtracking = True
+       allow_backtracking = backtrack_max > 0
        backtracked = 0
        frozen_config = _frozen_depgraph_config(settings, trees,
                myopts, spinner)