Add a wrapper around config.features that provides the following
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Aug 2010 11:13:09 +0000 (04:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Aug 2010 11:13:09 +0000 (04:13 -0700)
commit13af7cb709711b00394e80b3a7a928a95133229f
tree31796dfc41386b1f2c1fa3a28d220035570eb19a
parent81de00c7c6d8c591f2e8727fa465af8db5cfbdf1
Add a wrapper around config.features that provides the following
enhancements:

* The FEATURES variable is automatically synchronized upon modification.

* Modifications result in a permanent override that will cause the change
  to propagate to the incremental stacking mechanism in config.regenerate().
  This eliminates the need to call config.backup_changes() when FEATURES
  is modified, since any overrides are guaranteed to persist despite calls
  to config.reset().

This allows cleanup of all code that overrides FEATURES, and also allows
config.regenerate() to stack FEATURES such that special cases are not
needed for package.env handling inside config.setcpv().
bin/ebuild
bin/egencache
pym/_emerge/actions.py
pym/portage/package/ebuild/config.py
pym/portage/package/ebuild/prepare_build_dirs.py
pym/portage/tests/ebuild/test_config.py [new file with mode: 0644]