From e0d6e1b694ef10563a34c53fae9450d8d97efa67 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Mon, 10 Nov 2008 20:47:25 +0000 Subject: Fixed putsrpm, old structure but new colors Make it work again and added an alias to "import", as in mdvsys. --- repsys | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'repsys') diff --git a/repsys b/repsys index a719ba1..e519e16 100755 --- a/repsys +++ b/repsys @@ -31,6 +31,8 @@ Run "repsys COMMAND --help" for more information. Written by Gustavo Niemeyer """ +command_aliases = {"import": "putsrpm"} + def plugin_help(opt, val, parser, mode): if parser is None: prog = sys.argv[0] @@ -65,6 +67,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") -- cgit v1.2.1