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:04 +0000 (19:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Aug 2007 19:27:04 +0000 (19:27 -0000)
svn path=/main/trunk/; revision=7537

pym/emerge/__init__.py

index 8b0f8a59e016c1c3cded3674ebb91913d66fe301..b4e2102c41ad1c8530af897ba0269082df530d31 100644 (file)
@@ -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: