summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-06-27 21:33:17 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-06-27 21:33:17 +0200
commit8ff8b0aad08d1381aeb410807881b46ba4bc7135 (patch)
treee6a0b8ffef0c140cd0bfe1ef8885e60291624a2a
parent7587568f3133d12ef68b633328954cb838fcaafe (diff)
downloadportage-8ff8b0aad08d1381aeb410807881b46ba4bc7135.tar.gz
portage-8ff8b0aad08d1381aeb410807881b46ba4bc7135.tar.bz2
portage-8ff8b0aad08d1381aeb410807881b46ba4bc7135.zip
pkg_use_display(): Use use.expand and use.expand_hidden attributes.
-rw-r--r--pym/_emerge/UseFlagDisplay.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/_emerge/UseFlagDisplay.py b/pym/_emerge/UseFlagDisplay.py
index 5cf82ec33..7c7958d32 100644
--- a/pym/_emerge/UseFlagDisplay.py
+++ b/pym/_emerge/UseFlagDisplay.py
@@ -60,10 +60,8 @@ class UseFlagDisplay(object):
def pkg_use_display(pkg, opts):
settings = pkg.root_config.settings
- use_expand = settings.get('USE_EXPAND', '').split()
- use_expand.sort()
- use_expand_hidden = set(
- settings.get('USE_EXPAND_HIDDEN', '').upper().split())
+ use_expand = pkg.use.expand
+ use_expand_hidden = pkg.use.expand_hidden
alphabetical_use = '--alphabetical' in opts
forced_flags = set(chain(pkg.use.force,
pkg.use.mask))