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

bin/emerge

index 45f7c664e59bad51349bc52993fde5176a88006a..5b8df38080d394938b21bddcb12df7108c7b7a9c 100755 (executable)
@@ -3007,9 +3007,12 @@ class depgraph:
                                                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)