From b525d490eab349157a08d927ba604211de433d7c Mon Sep 17 00:00:00 2001
From: Zac Medico <zmedico@gentoo.org>
Date: Tue, 9 Mar 2010 05:02:27 +0000
Subject: [PATCH] Add --debug output for the scheduler digraph.

svn path=/main/trunk/; revision=15790
---
 pym/_emerge/Scheduler.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 24679b2ac..c35c2eaba 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -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):
 		"""
-- 
2.26.2