From 1938f73159b843911e07b9dad9d13443be06540d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 18 Mar 2013 04:06:41 -0700 Subject: [PATCH] portageq: add pquery to global command list --- bin/portageq | 143 +++++++++++++++++++++++++++------------------------ 1 file changed, 76 insertions(+), 67 deletions(-) diff --git a/bin/portageq b/bin/portageq index 1b3658fdf..a691a56c7 100755 --- a/bin/portageq +++ b/bin/portageq @@ -873,73 +873,6 @@ def list_preserved_libs(argv): return rValue list_preserved_libs.uses_eroot = True -#----------------------------------------------------------------------------- -# -# DO NOT CHANGE CODE BEYOND THIS POINT - IT'S NOT NEEDED! -# - -non_commands = frozenset(['elog', 'eval_atom_use', 'exithandler', 'main', 'pquery', 'usage']) -commands = sorted(k for k, v in globals().items() \ - if k not in non_commands and isinstance(v, types.FunctionType) and v.__module__ == "__main__") - -def usage(argv, parser=None, pquery_option_groups=None): - print(">>> Portage information query tool") - print(">>> %s" % portage.VERSION) - print(">>> Usage: portageq [