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]