return pkg, existing
def _pkg_visibility_check(self, pkg, allow_missing_keywords=False):
- pkgsettings = self._frozen_config.pkgsettings[pkg.root]
- root_config = self._frozen_config.roots[pkg.root]
+
if pkg.visible:
return True
if not allow_missing_keywords:
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)
if len(mreasons) == 1 and \
mreasons[0].hint == 'unstable keyword':