From: Zac Medico Date: Wed, 1 Aug 2007 19:27:04 +0000 (-0000) Subject: Like older versions of portage, don't show the repo display if [0] is all that will... X-Git-Tag: v2.2_pre1~912 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e86b98092975204041b7cd0912ef56b376d161af;p=portage.git 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 --- 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: