Add --debug output for the scheduler digraph.
authorZac Medico <zmedico@gentoo.org>
Tue, 9 Mar 2010 05:02:27 +0000 (05:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 9 Mar 2010 05:02:27 +0000 (05:02 -0000)
svn path=/main/trunk/; revision=15790

pym/_emerge/Scheduler.py

index 24679b2ac6d3ffdd3c5325553dda62df380c6caf..c35c2eabac6c04f4ccd6f2597cf523ea3a9b35e0 100644 (file)
@@ -353,6 +353,10 @@ class Scheduler(PollScheduler):
                self._prune_digraph()
                self._prevent_builddir_collisions()
                self._implicit_libc_deps()
+               if '--debug' in self.myopts:
+                       writemsg("\nscheduler digraph:\n\n", noiselevel=-1)
+                       self._digraph.debug_print()
+                       writemsg("\n", noiselevel=-1)
 
        def _find_system_deps(self):
                """