Like older versions of portage, don't show the repo display if [0] is all that will...
authorZac Medico <zmedico@gentoo.org>
Wed, 1 Aug 2007 19:27:38 +0000 (19:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Aug 2007 19:27:38 +0000 (19:27 -0000)
svn path=/main/branches/2.1.2/; revision=7538

bin/emerge

index 790cd14fd6777c98d20b3cda3b9f6ec9746d6ae5..34f49296b056dd95cb4597cf03c7134e45b61e70 100755 (executable)
@@ -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: