When displaying portage.auxdbkeys, sort and filter unused.
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Aug 2010 09:52:11 +0000 (02:52 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Aug 2010 09:52:11 +0000 (02:52 -0700)
bin/portageq

index 77c102ed49397aaf74358b04944bba0220a3c4e8..e27ce482919f942e3a3b93accac422131410f102 100755 (executable)
@@ -176,7 +176,8 @@ metadata.__doc__ = """
 <root> <pkgtype> <category/package> [<key>]+
 Returns metadata values for the specified package.
 Available keys: %s
-"""  % ','.join(portage.auxdbkeys)
+"""  % ','.join(sorted(x for x in portage.auxdbkeys \
+if not x.startswith('UNUSED_')))
 
 metadata.uses_root = True