Add debug output for backtracking limit.
authorZac Medico <zmedico@gentoo.org>
Fri, 8 Oct 2010 22:01:03 +0000 (15:01 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 8 Oct 2010 22:01:03 +0000 (15:01 -0700)
pym/_emerge/depgraph.py

index a54c6338e8e74762a1052c7c7a655c90c4bb5e1a..fcf7bf8e3e1c7c515d4c1f707de704ae4564075f 100644 (file)
@@ -5543,6 +5543,11 @@ def _backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, sp
        if not (success or mydepgraph.success_without_autounmask()) and backtracker.backtracked(): 
                backtrack_parameters = backtracker.get_best_run()
 
+               if "--debug" in myopts:
+                       writemsg_level(
+                               "\n\nbacktracking aborted after %s tries\n\n" % \
+                               max_depth, noiselevel=-1, level=logging.DEBUG)
+
                mydepgraph = depgraph(settings, trees, myopts, myparams, spinner,
                        frozen_config=frozen_config,
                        allow_backtracking=False,