_pkg_visibility_check: if in graph then visible
authorZac Medico <zmedico@gentoo.org>
Wed, 18 May 2011 04:37:08 +0000 (21:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 May 2011 04:37:08 +0000 (21:37 -0700)
pym/_emerge/depgraph.py

index e1557a1b5846839f4906fab5c6807d33030d94d5..4789a0ca2060dc477ea34494e36e659e6bef2288 100644 (file)
@@ -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