summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-06 20:27:03 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-06 20:27:03 +0000
commitad68ed96ef76c8345e50c30d2075a130e522de00 (patch)
treed3fadb7bd3f885c668e7e85239fe267577115726 /pym
parent1db563f849d6b3f87e9c60151d3bdeb2ae8cc35e (diff)
downloadportage-ad68ed96ef76c8345e50c30d2075a130e522de00.tar.gz
portage-ad68ed96ef76c8345e50c30d2075a130e522de00.tar.bz2
portage-ad68ed96ef76c8345e50c30d2075a130e522de00.zip
Remove the special package.keywords mask warning from bug #223447 since
--depclean now uses the depgraph class and therefore should be more consistent with the update algorithm. svn path=/main/trunk/; revision=11815
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/__init__.py38
1 files changed, 4 insertions, 34 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index f514624fa..ec8413595 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5894,43 +5894,13 @@ class depgraph(object):
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
- # likely to generate unwanted noise:
- #
- # * Packages missing /var/db/pkg/*/*/KEYWORDS entries
- # due to having been installed by an old version of
- # portage.
- #
- # * Packages installed by overriding ACCEPT_KEYWORDS
- # via the environment.
- #
- # To avoid unwanted noise, only warn about keyword
- # masks if all of the following are true:
- #
- # * KEYWORDS is not empty (not installed by old portage).
- #
-
+ # Check for masked installed packages. Only warn about
+ # packages that are in the graph in order to avoid warning
+ # about those that will be automatically uninstalled during
+ # the merge process or by --depclean.
if pkg in final_db:
if pkg_in_graph and not visible(pkgsettings, pkg):
self._masked_installed.add(pkg)
- elif pkgsettings._getMissingKeywords(
- pkg.cpv, pkg.metadata) and \
- pkg.metadata["KEYWORDS"].split() and \
- not pkg_in_graph:
- try:
- ebuild = self._pkg(pkg.cpv,
- "ebuild", pkg.root_config)
- except KeyError:
- ebuild = None
- else:
- try:
- if not visible(pkgsettings, ebuild):
- ebuild = None
- except portage.exception.InvalidDependString:
- ebuild = None
- if ebuild is None:
- self._masked_installed.add(pkg)
blocker_atoms = None
blockers = None