summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-01 19:27:04 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-01 19:27:04 +0000
commite86b98092975204041b7cd0912ef56b376d161af (patch)
treed23edc6c7693e03a13efcafce74f9de7ea51f0fc
parent14130d66fe82a147b52eaef1e410393be42d51dc (diff)
downloadportage-e86b98092975204041b7cd0912ef56b376d161af.tar.gz
portage-e86b98092975204041b7cd0912ef56b376d161af.tar.bz2
portage-e86b98092975204041b7cd0912ef56b376d161af.zip
Like older versions of portage, don't show the repo display if [0] is all that will be shown.
svn path=/main/trunk/; revision=7537
-rw-r--r--pym/emerge/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 8b0f8a59e..b4e2102c4 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -2598,6 +2598,7 @@ class depgraph(object):
return ret
repo_display = RepoDisplay(self.roots)
+ show_repos = False
tree_nodes = []
display_list = []
@@ -2973,7 +2974,8 @@ class depgraph(object):
repoadd = "%s=>%s" % (
repo_display.repoStr(repo_path_prev),
repo_display.repoStr(repo_path_real))
- if repoadd:
+ if repoadd and repoadd != "0":
+ show_repos = True
verboseadd += teal("[%s]" % repoadd)
xs = list(portage.pkgsplit(x[2]))
@@ -3112,7 +3114,7 @@ class depgraph(object):
if verbosity == 3:
print
print counters
- if p:
+ if show_repos:
sys.stdout.write(str(repo_display))
if "--changelog" in self.myopts: