To avoid false positives during the transition
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Apr 2008 20:50:26 +0000 (20:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Apr 2008 20:50:26 +0000 (20:50 -0000)
period, don't show ? if the installed package
is missing a repository label. Stages starting
with 2008.0 will come with repository labels.

svn path=/main/branches/2.1.2/; revision=9783

bin/emerge

index ccfaf5844b92c84a4a2843b12fbf9d07e303a3c0..cbaf1cd1d757a2921c4795ba8e7edd65b66a38e7 100755 (executable)
@@ -4012,7 +4012,13 @@ class depgraph(object):
                                                if repo_name_prev:
                                                        repo_path_prev = portdb.getRepositoryPath(
                                                                repo_name_prev)
-                                               if repo_path_prev == repo_path_real:
+                                               # To avoid false positives during the transition
+                                               # period, don't show ? if the installed package
+                                               # is missing a repository label. Stages starting
+                                               # with 2008.0 will come with repository labels.
+                                               ignore_missing_labels = True
+                                               if (ignore_missing_labels and not repo_path_prev) or \
+                                                       repo_path_prev == repo_path_real:
                                                        repoadd = repo_display.repoStr(repo_path_real)
                                                else:
                                                        repoadd = "%s=>%s" % (