From 13af7cb709711b00394e80b3a7a928a95133229f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Aug 2010 04:13:09 -0700 Subject: 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(). --- pym/portage/package/ebuild/prepare_build_dirs.py | 1 - 1 file changed, 1 deletion(-) (limited to 'pym/portage/package/ebuild/prepare_build_dirs.py') diff --git a/pym/portage/package/ebuild/prepare_build_dirs.py b/pym/portage/package/ebuild/prepare_build_dirs.py index 3792800ac..0ae60342f 100644 --- a/pym/portage/package/ebuild/prepare_build_dirs.py +++ b/pym/portage/package/ebuild/prepare_build_dirs.py @@ -235,7 +235,6 @@ def _prepare_features_dirs(mysettings): if failure: mysettings.features.remove(myfeature) - mysettings['FEATURES'] = ' '.join(sorted(mysettings.features)) time.sleep(5) def _prepare_workdir(mysettings): -- cgit v1.2.3-1-g7c22