Hide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBS
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 17:19:05 +0000 (10:19 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 17:19:05 +0000 (10:19 -0700)
is False.

bin/portageq

index 2a7807c1599cc7444b09106baf658db92bbad8db..940575b1fee90f7e21b5e157657fb6e8d64cd9df 100755 (executable)
@@ -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() \