Remove the special package.keywords mask warning from bug #223447 since
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Nov 2008 20:27:03 +0000 (20:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Nov 2008 20:27:03 +0000 (20:27 -0000)
--depclean now uses the depgraph class and therefore should be more
consistent with the update algorithm.

svn path=/main/trunk/; revision=11815

pym/_emerge/__init__.py

index f514624fa7206cb411ed1756782a11c19cf7a568..ec8413595be1f7cc47dafef3e476dd2cae7db7ba 100644 (file)
@@ -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