From: Zac Medico Date: Fri, 27 Jul 2007 22:36:24 +0000 (-0000) Subject: For bug #186480, while we transition to repository labels, avoid ? spam in the reposi... X-Git-Tag: v2.2_pre1~933 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e63849a222e8ae199c853b027da556247bf2c380;p=portage.git 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 --- 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" % (