aboutsummaryrefslogtreecommitdiffstats
path: root/repsys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-11-10 20:47:25 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-11-10 20:47:25 +0000
commite0d6e1b694ef10563a34c53fae9450d8d97efa67 (patch)
treec09da0efa09e34f24280cddbea4309c00722de71 /repsys
parent2118671715facec324814a3e834cabaf97fc3f34 (diff)
downloadmgarepo-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-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)