Automatically enable --tree mode when displaying nodes with circular deps.
authorZac Medico <zmedico@gentoo.org>
Mon, 19 Feb 2007 01:24:10 +0000 (01:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 19 Feb 2007 01:24:10 +0000 (01:24 -0000)
svn path=/main/trunk/; revision=6008

pym/emerge/__init__.py

index 4db6667005846d1543cf6afd62a49d5364a033ff..6c10439373e3b2d8c292bda3485ac9f6cae69d69 100644 (file)
@@ -2092,6 +2092,7 @@ class depgraph:
                                # disable some of them.
                                self.myopts.pop("--quiet", None)
                                self.myopts.pop("--verbose", None)
+                               self.myopts["--tree"] = True
                                self.display([list(node) for node in mygraph.order])
                                print "!!! Error: circular dependencies:"
                                print