pkg_use_display(): Use use.expand and use.expand_hidden attributes.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Mon, 27 Jun 2011 19:33:17 +0000 (21:33 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Mon, 27 Jun 2011 19:33:17 +0000 (21:33 +0200)
pym/_emerge/UseFlagDisplay.py

index 5cf82ec3356aef2a5610610ac6bf976f1d6452db..7c7958d32c008221804f4905ecdb8591c8fec24d 100644 (file)
@@ -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))