From: Zac Medico Date: Thu, 6 Nov 2008 20:27:03 +0000 (-0000) Subject: Remove the special package.keywords mask warning from bug #223447 since X-Git-Tag: v2.2_rc14~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad68ed96ef76c8345e50c30d2075a130e522de00;p=portage.git 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 --- 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