From: Zac Medico Date: Mon, 12 Feb 2007 07:04:46 +0000 (-0000) Subject: In the event of a circular dependency panic, eliminate root nodes in order to reduce... X-Git-Tag: v2.2_pre1~1712 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a743cc567b636e27d83d14202afcc28cc55ac2fe;p=portage.git 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 --- 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)