summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-01-02 13:10:42 -0800
committerZac Medico <zmedico@gentoo.org>2011-01-02 13:10:42 -0800
commitb7de3d1fb10e40b4ef03462f8a145968689ac587 (patch)
treedffa7e0f3af0a85c4512d5901d403fb69351d6ab
parentd5c737ab92c774cd5c754375a0e93d9783a9f8b6 (diff)
downloadportage-b7de3d1fb10e40b4ef03462f8a145968689ac587.tar.gz
portage-b7de3d1fb10e40b4ef03462f8a145968689ac587.tar.bz2
portage-b7de3d1fb10e40b4ef03462f8a145968689ac587.zip
depclean: account for more masks
Account for packages with masks (like KEYWORDS masks) that are usually ignored in visibility checks for installed packages, in order to handle cases like bug #350285.
-rw-r--r--pym/_emerge/depgraph.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index a11094448..2ab027cfa 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -5426,7 +5426,12 @@ class _dep_check_composite_db(dbapi):
arg = None
if arg:
return False
- if pkg.installed and not self._depgraph._pkg_visibility_check(pkg):
+ if pkg.installed and \
+ (pkg.masks or not self._depgraph._pkg_visibility_check(pkg)):
+ # Account for packages with masks (like KEYWORDS masks)
+ # that are usually ignored in visibility checks for
+ # installed packages, in order to handle cases like
+ # bug #350285.
return False
in_graph = self._depgraph._dynamic_config._slot_pkg_map[
self._root].get(pkg.slot_atom)