summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-17 21:37:08 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-17 21:37:08 -0700
commit5f65c2294df592a6a4e0f0fff0bedec49ed3491a (patch)
tree84638967b01cc452406081ab8a65b82538acfafd
parentae4bdcee45f060b28707fca15ad72e896708740a (diff)
downloadportage-5f65c2294df592a6a4e0f0fff0bedec49ed3491a.tar.gz
portage-5f65c2294df592a6a4e0f0fff0bedec49ed3491a.tar.bz2
portage-5f65c2294df592a6a4e0f0fff0bedec49ed3491a.zip
_pkg_visibility_check: if in graph then visible
-rw-r--r--pym/_emerge/depgraph.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index e1557a1b5..4789a0ca2 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -3324,6 +3324,15 @@ class depgraph(object):
if pkg.visible:
return True
+ if pkg in self._dynamic_config.digraph:
+ # Sometimes we need to temporarily disable
+ # dynamic_config._autounmask, but for overall
+ # consistency in dependency resolution, in any
+ # case we want to respect autounmask visibity
+ # for packages that have already been added to
+ # the dependency graph.
+ return True
+
if not self._dynamic_config._autounmask:
return False