aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2015-01-17 22:58:28 -0800
committerTim Harder <radhermit@gmail.com>2015-01-17 22:58:28 -0800
commite45ec3dc3e85e30b4510c3dad9a881b7b7f0f103 (patch)
treea4a8b2afaf3d70d3a246285561b1a8628ef64563 /bin
parentmake apply_masks_filter and make_keywords_filter top-level methods (diff)
downloadpkgcore-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-xbin/pwrapper4
-rwxr-xr-xbin/pwrapper_installed4
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)