From: Zac Medico Date: Wed, 6 Oct 2010 02:48:44 +0000 (-0700) Subject: Make --info repo display brief, unless --verbose. X-Git-Tag: v2.2_rc90~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4e73f691a2d6ffa045f8c8eaaa81875f6c96273;p=portage.git Make --info repo display brief, unless --verbose. --- 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)