summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-04 01:49:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-04 01:49:25 +0000
commit2e5f718699a68e23a945b607c216a4e3be958ef8 (patch)
treebda0078fcf50937fbc9c3aaae941645a6947e47b
parentebd8a59f91f447d39e31e5a6b00f07869c58b404 (diff)
downloadportage-2e5f718699a68e23a945b607c216a4e3be958ef8.tar.gz
portage-2e5f718699a68e23a945b607c216a4e3be958ef8.tar.bz2
portage-2e5f718699a68e23a945b607c216a4e3be958ef8.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. (trunk r10553) svn path=/main/branches/2.1.2/; revision=10571
-rwxr-xr-xbin/emerge7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge
index 217608437..12743c9d1 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3538,6 +3538,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
@@ -3563,18 +3564,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(