diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
commit | f372e877cb32a6c009e29ff9ddf1a14f8b2fd216 (patch) | |
tree | be50c72a1a883aa07cad805d44a0cda906285997 /MgaRepo/commands/submit.py | |
parent | 8f51e35c875c9cbb4637cbf8796ee66a871ba57f (diff) | |
download | mgarepo-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/submit.py')
-rw-r--r-- | MgaRepo/commands/submit.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/MgaRepo/commands/submit.py b/MgaRepo/commands/submit.py index 665b98a..9f05dca 100644 --- a/MgaRepo/commands/submit.py +++ b/MgaRepo/commands/submit.py @@ -1,3 +1,4 @@ +#!/usr/bin/python from MgaRepo import Error, config, layout, mirror from MgaRepo.svn import SVN from MgaRepo.command import * @@ -159,10 +160,9 @@ def list_targets(option, opt, val, parser): raise Error("no submit host defined in mgarepo.conf") createsrpm = get_helper("create-srpm") #TODO make it configurable - args = ["ssh", host, createsrpm, "--list"] - execcmd(args, show=true) - sys.exit(0) # it is invoked via optparse callback, thus we need to - # force ending the script + command = "ssh %s %s --list" % (host, createsrpm) + execcmd(command, show=True) + sys.exit(0) def submit(urls, target, define=[], submithost=None, atonce=False, sid=None): if submithost is None: @@ -197,7 +197,8 @@ def submit(urls, target, define=[], submithost=None, atonce=False, sid=None): else: cmdsargs.extend((baseargs + [url]) for url in urls) for cmdargs in cmdsargs: - status, output = execcmd(cmdargs) + command = subprocess.list2cmdline(cmdargs) + status, output = execcmd(command) if status == 0: print("Package submitted!") else: |