Make depgraph._pkg_visibility_check() when --autounmask is not
authorZac Medico <zmedico@gentoo.org>
Sat, 18 Sep 2010 06:27:49 +0000 (23:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 18 Sep 2010 06:27:49 +0000 (23:27 -0700)
enabled.

pym/_emerge/depgraph.py

index fe375b7bbf35ac19d77693845f646a279bd58126..fcca14841afcbbe0ea9a79d7c0098a8a0c287267 100644 (file)
@@ -2558,6 +2558,9 @@ class depgraph(object):
                if pkg.visible:
                        return True
 
+               if self._frozen_config.myopts.get('--autounmask', 'n') is not True:
+                       return False
+
                pkgsettings = self._frozen_config.pkgsettings[pkg.root]
                root_config = self._frozen_config.roots[pkg.root]
                mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))