handle --cols when displaying blockers
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Dec 2006 22:13:14 +0000 (22:13 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 Dec 2006 22:13:14 +0000 (22:13 -0000)
svn path=/main/trunk/; revision=5286

bin/emerge

index f820a349172158b381b3daac39d70fe3aee9f253..1b3aca4b35b74694ad8875d0c05f7ee783d5a931 100755 (executable)
@@ -2009,7 +2009,10 @@ class depgraph:
                                counters.blocks += 1
                                resolved = portage.key_expand(
                                        pkg_key, mydb=vardb, settings=pkgsettings)
-                               print "["+x[0]+" "+addl+"]",red(resolved),
+                               if ("--columns" in self.myopts):
+                                       print addl,red(resolved),
+                               else:
+                                       print "["+x[0]+" "+addl+"]",red(resolved),
                                block_parents = self.blocker_parents[tuple(x)]
                                block_parents = set([pnode[2] for pnode in block_parents])
                                block_parents = ", ".join(block_parents)