aboutsummaryrefslogtreecommitdiffstats
path: root/repsys
diff options
context:
space:
mode:
Diffstat (limited to 'repsys')
-rwxr-xr-xrepsys6
1 files changed, 6 insertions, 0 deletions
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 <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)