Just show [0] instead of [0=>0] in the repo display.
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 04:57:08 +0000 (04:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 04:57:08 +0000 (04:57 -0000)
svn path=/main/trunk/; revision=7332

pym/emerge/__init__.py

index c20fcfeb325a60000503c0fd927f9d185f85b5fb..16face65cbcab5f63ca5969b02dbe13b2db41fde 100644 (file)
@@ -2953,9 +2953,12 @@ class depgraph(object):
                                                if repo_name_prev:
                                                        repo_path_prev = portdb.getRepositoryPath(
                                                                repo_name_prev)
-                                               repoadd = "%s=>%s" % (
-                                                       repo_display.repoStr(repo_path_prev),
-                                                       repo_display.repoStr(repo_path_real))
+                                               if repo_path_prev == repo_path_real:
+                                                       repoadd = repo_display.repoStr(repo_path_real)
+                                               else:
+                                                       repoadd = "%s=>%s" % (
+                                                               repo_display.repoStr(repo_path_prev),
+                                                               repo_display.repoStr(repo_path_real))
                                        if repoadd:
                                                verboseadd += teal("[%s]" % repoadd)