chiark / gitweb /
build: write out full rsync options
authorMarcus Hoffmann <bubuiic@aol.com>
Tue, 5 Dec 2017 20:37:04 +0000 (21:37 +0100)
committerMarcus Hoffmann <bubuiic@aol.com>
Tue, 5 Dec 2017 20:52:22 +0000 (21:52 +0100)
Also put target host:dir on one line to make it more readable

fdroidserver/build.py

index b1b744643451af2f6e90b13052d777bb27f557f9..bbb5a2b4d0b2e7492210c1298f5ada9177e85b83 100644 (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())