summaryrefslogtreecommitdiffstats
path: root/bin/egencache
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-21 04:13:09 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-21 04:13:09 -0700
commit13af7cb709711b00394e80b3a7a928a95133229f (patch)
tree31796dfc41386b1f2c1fa3a28d220035570eb19a /bin/egencache
parent81de00c7c6d8c591f2e8727fa465af8db5cfbdf1 (diff)
downloadportage-13af7cb709711b00394e80b3a7a928a95133229f.tar.gz
portage-13af7cb709711b00394e80b3a7a928a95133229f.tar.bz2
portage-13af7cb709711b00394e80b3a7a928a95133229f.zip
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().
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/egencache b/bin/egencache
index c078d98a7..0d9c4858d 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -327,8 +327,6 @@ def egencache_main(args):
"automatically enabling FEATURES=metadata-transfer\n",
level=logging.WARNING, noiselevel=-1)
settings.features.add('metadata-transfer')
- settings['FEATURES'] = ' '.join(sorted(settings.features))
- settings.backup_changes('FEATURES')
settings.lock()