From e86b98092975204041b7cd0912ef56b376d161af Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 1 Aug 2007 19:27:04 +0000 Subject: [PATCH] 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 --- pym/emerge/__init__.py | 6 ++++-- 1 file 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: -- 2.26.2