summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-13 22:13:14 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-13 22:13:14 +0000
commit4f147b4091065e7aa347a3fa6ce91dbdecd5f182 (patch)
tree64eb2c3ab0f720374637656f725e3a9e3e81d705
parent0c172f4b896b2047f3d114b97782c57fc6a3ef30 (diff)
downloadportage-4f147b4091065e7aa347a3fa6ce91dbdecd5f182.tar.gz
portage-4f147b4091065e7aa347a3fa6ce91dbdecd5f182.tar.bz2
portage-4f147b4091065e7aa347a3fa6ce91dbdecd5f182.zip
handle --cols when displaying blockers
svn path=/main/trunk/; revision=5286
-rwxr-xr-xbin/emerge5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index f820a3491..1b3aca4b3 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -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)