summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-08 01:26:13 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-08 01:26:13 +0000
commit23df221085a894d8ee2901bc235185491d978d08 (patch)
tree27a27a992b338bf5e1d5aa4a37d5e31136fc7072
parent644d24dfd93ee05823eb0855a2d8df9978e6c0b7 (diff)
downloadportage-23df221085a894d8ee2901bc235185491d978d08.tar.gz
portage-23df221085a894d8ee2901bc235185491d978d08.tar.bz2
portage-23df221085a894d8ee2901bc235185491d978d08.zip
Bug #208708 - Fix warnings for system or world packages that are masked.
svn path=/main/trunk/; revision=9289
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index e8b741086..efb863565 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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)