diff options
author | 2015-02-21 10:13:33 -0500 | |
---|---|---|
committer | 2015-02-21 10:40:59 -0500 | |
commit | 71acc4af9be7eab4eae87ee48a4a7089600c07e5 (patch) | |
tree | 72e95fbdabb59ccec695f252565bcea32374f35f | |
parent | pmerge: respect the return_none parameter to parse_target() (diff) | |
download | pkgcore-71acc4af9be7eab4eae87ee48a4a7089600c07e5.tar.gz pkgcore-71acc4af9be7eab4eae87ee48a4a7089600c07e5.tar.bz2 pkgcore-71acc4af9be7eab4eae87ee48a4a7089600c07e5.zip |
domain: respect USE settings from the environment
This works the same as emerge, i.e. running something like:
USE="foo" pmerge -1av package
will forcefully enable the use flag "foo" regardless of other settings
from the system configuration.
-rw-r--r-- | pkgcore/ebuild/domain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgcore/ebuild/domain.py b/pkgcore/ebuild/domain.py index ab249743..724db41b 100644 --- a/pkgcore/ebuild/domain.py +++ b/pkgcore/ebuild/domain.py @@ -238,7 +238,7 @@ class domain(pkgcore.config.domain.domain): # use is collapsed; now stack use_expand. use = settings['USE'] = set(optimize_incrementals( - settings.get("USE", ()))) + list(settings.get('USE', ())) + os.environ.get('USE', '').split())) self._extend_use_for_features(use, settings.get("FEATURES", ())) |