diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-03 09:38:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-03 09:38:56 +0000 |
commit | 002c39d034eaa11163563e1fa65ca2046b5a354f (patch) | |
tree | e394d402458df5cfe45dd6563ee61c1c90775983 | |
parent | 817b5fc0cdec257ef33ab037ade1ef7803654f91 (diff) | |
download | portage-002c39d034eaa11163563e1fa65ca2046b5a354f.tar.gz portage-002c39d034eaa11163563e1fa65ca2046b5a354f.tar.bz2 portage-002c39d034eaa11163563e1fa65ca2046b5a354f.zip |
Tweak the installed masked code from bug #223447 so that it less noisy
by suppressing masking messages for packages that haven't been pulled
into the current dependency graph.
svn path=/main/trunk/; revision=10553
-rw-r--r-- | pym/_emerge/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index ae471a975..73ba3e631 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3453,6 +3453,7 @@ class depgraph(object): for pkg in vardb: cpv = pkg.cpv stale_cache.discard(cpv) + pkg_in_graph = self.digraph.contains(pkg) # Check for masked installed packages. For keyword # mask there are a couple of common cases that are @@ -3478,18 +3479,18 @@ class depgraph(object): # TODO: Share visibility code to fix this inconsistency. if pkg in final_db: - if not visible(pkgsettings, pkg): + if pkg_in_graph and not visible(pkgsettings, pkg): self._masked_installed.add(pkg) elif graph_complete_for_root and \ pkgsettings.getMissingKeywords( pkg.cpv, pkg.metadata) and \ pkg.metadata["KEYWORDS"].split() and \ - not self.digraph.contains(pkg): + not pkg_in_graph: self._masked_installed.add(pkg) blocker_atoms = None blockers = None - if self.digraph.contains(pkg): + if pkg_in_graph: blockers = [] try: blockers.extend( |