From: Zac Medico Date: Wed, 18 May 2011 04:37:08 +0000 (-0700) Subject: _pkg_visibility_check: if in graph then visible X-Git-Tag: v2.1.9.50~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70d7c4449cc39f522987a6134440432ba95ab8bf;p=portage.git _pkg_visibility_check: if in graph then visible --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 2d0ad82fe..e6f9b1284 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3023,7 +3023,16 @@ class depgraph(object): if pkg.visible: return True - if self._frozen_config.myopts.get('--autounmask', 'n') is not 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 pkgsettings = self._frozen_config.pkgsettings[pkg.root]