X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=fdroidserver%2Fbuild.py;h=b1b744643451af2f6e90b13052d777bb27f557f9;hb=e12e1b6a5ccb681f97991e14481dac2f8bb0d7e6;hp=2bacd5550fd5adfd220d61906bf5d644a94f5ac9;hpb=bb643eddcfc269072701018b0b10817554b5626e;p=fdroidserver.git diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 2bacd555..b1b74464 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -100,18 +100,22 @@ def build_server(app, build, vcs, build_dir, output_dir, log_dir, force): # Helper to copy the contents of a directory to the server... def send_dir(path): logging.debug("rsyncing " + path + " to " + ftp.getcwd()) - subprocess.check_call(['rsync', '-rple', - 'ssh -o StrictHostKeyChecking=no' + - ' -o UserKnownHostsFile=/dev/null' + - ' -o LogLevel=FATAL' + - ' -o IdentitiesOnly=yes' + - ' -o PasswordAuthentication=no' + - ' -p ' + str(sshinfo['port']) + - ' -i ' + sshinfo['idfile'], - path, - sshinfo['user'] + - "@" + sshinfo['hostname'] + - ":" + ftp.getcwd()]) + try: + subprocess.check_output(['rsync', '-rplqe', + 'ssh -o StrictHostKeyChecking=no' + + ' -o UserKnownHostsFile=/dev/null' + + ' -o LogLevel=FATAL' + + ' -o IdentitiesOnly=yes' + + ' -o PasswordAuthentication=no' + + ' -p ' + str(sshinfo['port']) + + ' -i ' + sshinfo['idfile'], + path, + sshinfo['user'] + + "@" + sshinfo['hostname'] + + ":" + ftp.getcwd()], + stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as e: + raise FDroidException(str(e), e.output.decode()) logging.info("Preparing server for build...") serverpath = os.path.abspath(os.path.dirname(__file__))