summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-05 19:48:44 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-05 19:48:44 -0700
commitd4e73f691a2d6ffa045f8c8eaaa81875f6c96273 (patch)
tree0e82029e2ce2e820b3e86d277b2327bbd41fee9d
parent2183277b1bb4c5324eb42e9f60c876b9f05b3b5e (diff)
downloadportage-d4e73f691a2d6ffa045f8c8eaaa81875f6c96273.tar.gz
portage-d4e73f691a2d6ffa045f8c8eaaa81875f6c96273.tar.bz2
portage-d4e73f691a2d6ffa045f8c8eaaa81875f6c96273.zip
Make --info repo display brief, unless --verbose.
-rw-r--r--pym/_emerge/actions.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index a8fd39b15..5fd7a9d11 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1357,9 +1357,13 @@ def action_info(settings, trees, myopts, myfiles):
libtool_vers = ",".join(trees["/"]["vartree"].dbapi.match("sys-devel/libtool"))
repos = portdb.settings.repositories
- writemsg_stdout("Repositories:\n\n")
- for repo in repos:
- writemsg_stdout(repo.info_string())
+ if "--verbose" in myopts:
+ writemsg_stdout("Repositories:\n\n")
+ for repo in repos:
+ writemsg_stdout(repo.info_string())
+ else:
+ writemsg_stdout("Repositories: %s\n" % \
+ " ".join(repo.name for repo in repos))
if "--verbose" in myopts:
myvars = list(settings)