diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-27 22:36:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-27 22:36:24 +0000 |
commit | e63849a222e8ae199c853b027da556247bf2c380 (patch) | |
tree | 197418ebd5db2480c5610912df0998a2c9d360cb | |
parent | 55a0748aaee054584cfb80ccc162dbc5d2adb11d (diff) | |
download | portage-e63849a222e8ae199c853b027da556247bf2c380.tar.gz portage-e63849a222e8ae199c853b027da556247bf2c380.tar.bz2 portage-e63849a222e8ae199c853b027da556247bf2c380.zip |
For bug #186480, while we transition to repository labels, avoid ? spam in the repository display by ignoring a missing repository label for an installed package. (branches/2.1.2 r7409)
svn path=/main/trunk/; revision=7410
-rw-r--r-- | pym/emerge/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 0cc02d097..9c8cd6263 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2963,7 +2963,11 @@ class depgraph(object): 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" % ( |