From 729901d3647f483a0b1eeea2653665b77f1a3fe2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 1 Aug 2007 19:27:38 +0000 Subject: [PATCH] Like older versions of portage, don't show the repo display if [0] is all that will be shown. (trunk r7537) svn path=/main/branches/2.1.2/; revision=7538 --- bin/emerge | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index 790cd14fd..34f49296b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2651,6 +2651,7 @@ class depgraph: return ret repo_display = RepoDisplay(self.roots) + show_repos = False tree_nodes = [] display_list = [] @@ -3027,7 +3028,8 @@ class depgraph: 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=portage.pkgsplit(x[2]) @@ -3166,7 +3168,7 @@ class depgraph: 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