Bug #208708 - Fix warnings for system or world packages that are masked.
authorZac Medico <zmedico@gentoo.org>
Fri, 8 Feb 2008 01:26:13 +0000 (01:26 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 8 Feb 2008 01:26:13 +0000 (01:26 -0000)
svn path=/main/trunk/; revision=9289

pym/_emerge/__init__.py

index e8b7410865effc388b031fba53455c934c93295d..efb8635652d04c7bc41250dd346f31260b858101 100644 (file)
@@ -2082,7 +2082,9 @@ class depgraph(object):
                                                continue
                                        pkg, existing_node = self._select_package(
                                                myroot, atom, onlydeps=onlydeps)
-                                       if not pkg:
+                                       if not pkg or \
+                                               (pkg.installed and portdb.xmatch("match-all", atom) \
+                                               and not portdb.xmatch("bestmatch-visible", atom)):
                                                if not (isinstance(arg, SetArg) and \
                                                        arg.name in ("system", "world")):
                                                        self._show_unsatisfied_dep(myroot, atom)