summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-02 10:19:05 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-02 10:19:05 -0700
commitfe830f9d2f8f89d171acc2ddb263f44d7e7c5eb6 (patch)
tree92b24437841a987288ed275243e47a37737b1497
parent53e2416ae4cecd0350e315f64694667dfbf59836 (diff)
downloadportage-fe830f9d2f8f89d171acc2ddb263f44d7e7c5eb6.tar.gz
portage-fe830f9d2f8f89d171acc2ddb263f44d7e7c5eb6.tar.bz2
portage-fe830f9d2f8f89d171acc2ddb263f44d7e7c5eb6.zip
Hide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBS
is False.
-rwxr-xr-xbin/portageq3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq
index 2a7807c15..940575b1f 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -575,6 +575,9 @@ list_preserved_libs.uses_root = True
# DO NOT CHANGE CODE BEYOND THIS POINT - IT'S NOT NEEDED!
#
+if not portage.const._ENABLE_PRESERVE_LIBS:
+ del list_preserved_libs
+
non_commands = frozenset(['eval_atom_use', 'exithandler', 'main',
'usage', 'writemsg', 'writemsg_stdout'])
commands = sorted(k for k, v in globals().items() \