aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/commands/maintdb.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-11-05 15:38:08 +0100
committerPapoteur <papoteur@mageialinux-online.org>2016-11-05 15:38:08 +0100
commitf372e877cb32a6c009e29ff9ddf1a14f8b2fd216 (patch)
treebe50c72a1a883aa07cad805d44a0cda906285997 /MgaRepo/commands/maintdb.py
parent8f51e35c875c9cbb4637cbf8796ee66a871ba57f (diff)
downloadmgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar
mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.gz
mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.bz2
mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.xz
mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.zip
Revert to 1.12.3 state
Diffstat (limited to 'MgaRepo/commands/maintdb.py')
-rw-r--r--MgaRepo/commands/maintdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/MgaRepo/commands/maintdb.py b/MgaRepo/commands/maintdb.py
index 0bd4d56..9a97be8 100644
--- a/MgaRepo/commands/maintdb.py
+++ b/MgaRepo/commands/maintdb.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python
from MgaRepo import Error, config
from MgaRepo.command import *
from MgaRepo.util import execcmd, get_helper
@@ -32,7 +33,8 @@ def parse_options():
def maintdb(maintdb_args):
host = config.get("maintdb", "host", "maintdb.mageia.org")
maintdb_helper = get_helper("maintdb")
- command = ["ssh", host, maintdb_helper] + maintdb_args
+ cmd_args = ' '.join(maintdb_args)
+ command = "ssh %s %s %s" % (host, maintdb_helper, cmd_args)
execcmd(command, show=True)
sys.exit(0)