diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-11-10 20:47:25 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-11-10 20:47:25 +0000 |
commit | e0d6e1b694ef10563a34c53fae9450d8d97efa67 (patch) | |
tree | c09da0efa09e34f24280cddbea4309c00722de71 /repsys | |
parent | 2118671715facec324814a3e834cabaf97fc3f34 (diff) | |
download | mgarepo-e0d6e1b694ef10563a34c53fae9450d8d97efa67.tar mgarepo-e0d6e1b694ef10563a34c53fae9450d8d97efa67.tar.gz mgarepo-e0d6e1b694ef10563a34c53fae9450d8d97efa67.tar.bz2 mgarepo-e0d6e1b694ef10563a34c53fae9450d8d97efa67.tar.xz mgarepo-e0d6e1b694ef10563a34c53fae9450d8d97efa67.zip |
Fixed putsrpm, old structure but new colors
Make it work again and added an alias to "import", as in mdvsys.
Diffstat (limited to 'repsys')
-rwxr-xr-x | repsys | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -31,6 +31,8 @@ Run "repsys COMMAND --help" for more information. Written by Gustavo Niemeyer <gustavo@niemeyer.net> """ +command_aliases = {"import": "putsrpm"} + def plugin_help(opt, val, parser, mode): if parser is None: prog = sys.argv[0] @@ -66,6 +68,10 @@ def parse_options(): def dispatch_command(command, argv, debug=0): sys.argv = argv try: + command = command_aliases[command] + except KeyError: + pass + try: repsys_module = __import__("RepSys.commands."+command) commands_module = getattr(repsys_module, "commands") command_module = getattr(commands_module, command) |