summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-09 20:50:26 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-09 20:50:26 +0000
commit2b4b77b67851e9a6de1852de6c080a55f97d0336 (patch)
tree21537fa3ad8060aa6424ee3d3a9ba30203bdd00b /bin
parenta0c9e6aea28c9ee9d42a36d90c58a3f3f38a8416 (diff)
downloadportage-2b4b77b67851e9a6de1852de6c080a55f97d0336.tar.gz
portage-2b4b77b67851e9a6de1852de6c080a55f97d0336.tar.bz2
portage-2b4b77b67851e9a6de1852de6c080a55f97d0336.zip
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. svn path=/main/branches/2.1.2/; revision=9783
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index ccfaf5844..cbaf1cd1d 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -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" % (