diff options
author | 2015-01-17 22:58:28 -0800 | |
---|---|---|
committer | 2015-01-17 22:58:28 -0800 | |
commit | e45ec3dc3e85e30b4510c3dad9a881b7b7f0f103 (patch) | |
tree | a4a8b2afaf3d70d3a246285561b1a8628ef64563 /bin | |
parent | make apply_masks_filter and make_keywords_filter top-level methods (diff) | |
download | pkgcore-e45ec3dc3e85e30b4510c3dad9a881b7b7f0f103.tar.gz pkgcore-e45ec3dc3e85e30b4510c3dad9a881b7b7f0f103.tar.bz2 pkgcore-e45ec3dc3e85e30b4510c3dad9a881b7b7f0f103.zip |
remove old subcommands access methods
All scripts now use argparse so we don't need to keep the old fallbacks
around.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pwrapper | 4 | ||||
-rwxr-xr-x | bin/pwrapper_installed | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/bin/pwrapper b/bin/pwrapper index a83d21048..6ea158bd3 100755 --- a/bin/pwrapper +++ b/bin/pwrapper @@ -30,8 +30,4 @@ if __name__ == '__main__': name = osp.basename(sys.argv[0]).replace("-", "_") script = modules.load_module('pkgcore.scripts.%s' % (name,)) subcommands = getattr(script, 'argparser', None) - if subcommands is None: - subcommands = getattr(script, 'commandline_commands', None) - if subcommands is None: - subcommands = {None: (script.OptionParser, script.main)} commandline.main(subcommands) diff --git a/bin/pwrapper_installed b/bin/pwrapper_installed index 4d8ee404b..35584a790 100755 --- a/bin/pwrapper_installed +++ b/bin/pwrapper_installed @@ -29,8 +29,4 @@ if __name__ == '__main__': sys.stderr.write('Add --debug to the commandline for a traceback.\n') sys.exit(1) subcommands = getattr(script, 'argparser', None) - if subcommands is None: - subcommands = getattr(script, 'commandline_commands', None) - if subcommands is None: - subcommands = {None: (script.OptionParser, script.main)} commandline.main(subcommands) |