For bug #186480, while we transition to repository lables, avoid ? spam in the reposi...
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Jul 2007 22:35:15 +0000 (22:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Jul 2007 22:35:15 +0000 (22:35 -0000)
svn path=/main/branches/2.1.2/; revision=7409

bin/emerge

index 5c5f3aa25e50741ddceb5a7dd3028c6c3df76ca8..fa8862181d36e89e503ee7b8d0c57419c326e4dd 100755 (executable)
@@ -3017,7 +3017,11 @@ class depgraph:
                                                if repo_name_prev:
                                                        repo_path_prev = portdb.getRepositoryPath(
                                                                repo_name_prev)
-                                               if repo_path_prev == repo_path_real:
+                                               # To avoid spam during the transition period, don't
+                                               # show ? if the installed package is missing a
+                                               # repository label.
+                                               if not repo_path_prev or \
+                                                       repo_path_prev == repo_path_real:
                                                        repoadd = repo_display.repoStr(repo_path_real)
                                                else:
                                                        repoadd = "%s=>%s" % (