1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

build: write out full rsync options

Also put target host:dir on one line to make it more readable
This commit is contained in:
Marcus Hoffmann 2017-12-05 21:37:04 +01:00
parent e12e1b6a5c
commit 1bfba12124

View File

@ -101,7 +101,7 @@ def build_server(app, build, vcs, build_dir, output_dir, log_dir, force):
def send_dir(path):
logging.debug("rsyncing " + path + " to " + ftp.getcwd())
try:
subprocess.check_output(['rsync', '-rplqe',
subprocess.check_output(['rsync', '--recursive', '--perms', '--links', '--quiet', '--rsh=' +
'ssh -o StrictHostKeyChecking=no' +
' -o UserKnownHostsFile=/dev/null' +
' -o LogLevel=FATAL' +
@ -110,9 +110,7 @@ def build_server(app, build, vcs, build_dir, output_dir, log_dir, force):
' -p ' + str(sshinfo['port']) +
' -i ' + sshinfo['idfile'],
path,
sshinfo['user'] +
"@" + sshinfo['hostname'] +
":" + ftp.getcwd()],
sshinfo['user'] + "@" + sshinfo['hostname'] + ":" + ftp.getcwd()],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
raise FDroidException(str(e), e.output.decode())