From a743cc567b636e27d83d14202afcc28cc55ac2fe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Feb 2007 07:04:46 +0000 Subject: [PATCH] In the event of a circular dependency panic, eliminate root nodes in order to reduce the noise level to a minimum. svn path=/main/trunk/; revision=5956 --- bin/emerge | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/emerge b/bin/emerge index e97127b4f..1c8e02f6a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2057,6 +2057,15 @@ class depgraph: self.altlist() print "!!! Error: circular dependencies:" print + # Reduce the noise level to a minimum via elimination of root + # nodes. + while True: + root_nodes = mygraph.root_nodes( + ignore_priority=DepPriority.SOFT) + if not root_nodes: + break + for node in root_nodes: + mygraph.remove(node) mygraph.debug_print() sys.exit(1) -- 2.26.2