scp convert its arguments to str itself.

This commit is contained in:
Matthieu Gautier 2018-03-19 17:54:06 +01:00
parent df51246753
commit 6cc4c43ffa
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def make_deps_archive(target):
def scp(what, where): def scp(what, where):
command = ['scp', '-i', str(SSH_KEY), what, where] command = ['scp', '-i', str(SSH_KEY), str(what), str(where)]
subprocess.check_call(command) subprocess.check_call(command)
@ -157,7 +157,7 @@ for target in TARGETS:
platform=PLATFORM, platform=PLATFORM,
build_deps_only=True) build_deps_only=True)
archive = make_deps_archive(target) archive = make_deps_archive(target)
scp(str(archive), 'nightlybot@download.kiwix.org:/var/www/tmp.kiwix.org/ci/') scp(archive, 'nightlybot@download.kiwix.org:/var/www/tmp.kiwix.org/ci/')
run_kiwix_build(target, run_kiwix_build(target,
platform=PLATFORM, platform=PLATFORM,