need_enable = sorted(atom.use.enabled.difference(use).intersection(pkg.iuse.all))
need_disable = sorted(atom.use.disabled.intersection(use).intersection(pkg.iuse.all))
- pkgsettings = self._frozen_config.pkgsettings[pkg.root]
- pkgsettings.setcpv(pkg)
untouchable_flags = \
- frozenset(chain(pkgsettings.usemask, pkgsettings.useforce))
+ frozenset(chain(pkg.use.mask, pkg.use.force))
if untouchable_flags.intersection(
chain(need_enable, need_disable)):
continue
involved_flags = set(chain(conditional.equal, conditional.not_equal, \
conditional.enabled, conditional.disabled))
- pkgsettings = self._frozen_config.pkgsettings[myparent.root]
- pkgsettings.setcpv(myparent)
untouchable_flags = \
- frozenset(chain(pkgsettings.usemask, pkgsettings.useforce))
+ frozenset(chain(myparent.use.mask, myparent.use.force))
if untouchable_flags.intersection(involved_flags):
continue
("--newuse" in self._frozen_config.myopts or \
"--reinstall" in self._frozen_config.myopts) and \
cpv in vardb.match(atom):
- pkgsettings.setcpv(pkg)
forced_flags = set()
- forced_flags.update(pkgsettings.useforce)
- forced_flags.update(pkgsettings.usemask)
+ forced_flags.update(pkg.use.force)
+ forced_flags.update(pkg.use.mask)
old_use = vardb.aux_get(cpv, ["USE"])[0].split()
old_iuse = set(filter_iuse_defaults(
vardb.aux_get(cpv, ["IUSE"])[0].split()))
affecting_use.update(extract_affecting_use(dep_str, atom))
#Don't show flags as 'affecting' if the user can't change them,
- pkgsettings = self._frozen_config.pkgsettings[node.root]
- pkgsettings.setcpv(node)
- affecting_use.difference_update(pkgsettings.usemask, \
- pkgsettings.useforce)
+ affecting_use.difference_update(node.use.mask, \
+ node.use.force)
pkg_name = node.cpv
if affecting_use:
return "\n".join(msg)
def _get_use_mask_and_force(self, pkg):
- pkgsettings = self.depgraph._frozen_config.pkgsettings[pkg.root]
- pkgsettings.setcpv(pkg)
- return frozenset(pkgsettings.usemask), frozenset(pkgsettings.useforce)
+ return pkg.use.mask, pkg.use.force
def _get_autounmask_changes(self, pkg):
needed_use_config_change = self.depgraph._dynamic_config._needed_use_config_changes.get(pkg)