aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2015-02-13 11:01:24 -0500
committerTim Harder <radhermit@gentoo.org>2015-02-13 11:12:44 -0500
commitce20a40636365bd6c4e24c145080002bffaf3154 (patch)
tree40d59407a5a79a4941da30105920b229edf6c16a
parentlint: whitespace and module namespace consistency (diff)
downloadpkgcore-ce20a40636365bd6c4e24c145080002bffaf3154.tar.gz
pkgcore-ce20a40636365bd6c4e24c145080002bffaf3154.tar.bz2
pkgcore-ce20a40636365bd6c4e24c145080002bffaf3154.zip
drop unnecessary variable aliases
The attrs are already returned as immutable types from the various profile classes.
-rw-r--r--pkgcore/ebuild/repository.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgcore/ebuild/repository.py b/pkgcore/ebuild/repository.py
index 9f1455e0..5a46b406 100644
--- a/pkgcore/ebuild/repository.py
+++ b/pkgcore/ebuild/repository.py
@@ -583,22 +583,19 @@ class _ConfiguredTree(configured.tree):
def _generate_iuse_effective(self, profile, pkg, *args):
iuse_effective = [x.lstrip('-+') for x in pkg.iuse]
- use_expand = frozenset(profile.use_expand)
# EAPI 5 and above allow profile defined IUSE injection (see PMS)
if pkg.eapi_obj.options.profile_iuse_injection:
iuse_effective.extend(profile.iuse_implicit)
- use_expand_implicit = frozenset(profile.use_expand_implicit)
- use_expand_unprefixed = frozenset(profile.use_expand_unprefixed)
- for v in use_expand_implicit.intersection(use_expand_unprefixed):
+ for v in profile.use_expand_implicit.intersection(profile.use_expand_unprefixed):
iuse_effective.extend(profile.default_env.get("USE_EXPAND_VALUES_" + v, "").split())
- for v in use_expand.intersection(use_expand_implicit):
+ for v in profile.use_expand.intersection(profile.use_expand_implicit):
for x in profile.default_env.get("USE_EXPAND_VALUES_" + v, "").split():
iuse_effective.append(v.lower() + "_" + x)
else:
iuse_effective.extend(pkg.repo.config.known_arches)
- iuse_effective.extend(x.lower() + "_.*" for x in use_expand)
+ iuse_effective.extend(x.lower() + "_.*" for x in profile.use_expand)
return tuple(sorted(set(iuse_effective)))