From: Fred Morcos Date: Tue, 28 Feb 2023 14:49:26 +0000 (+0100) Subject: Cleanup the ci_docs_upload_master pyinvoke task X-Git-Tag: auth-4.8.0-beta1~7^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d9b131b48debef08c573143c0ee5faa48f0a74d;p=thirdparty%2Fpdns.git Cleanup the ci_docs_upload_master pyinvoke task --- diff --git a/tasks.py b/tasks.py index e9b5809c30..fee0b6b646 100644 --- a/tasks.py +++ b/tasks.py @@ -302,9 +302,18 @@ def ci_docs_build_pdf(c): @task def ci_docs_upload_master(c, docs_host, pdf, username, product, directory=""): - c.run(f"rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./docs/_build/{product}-html-docs/ {username}@{docs_host}:{directory}") - c.run(f"rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./docs/_build/{product}-html-docs.tar.bz2 {username}@{docs_host}:{directory}/html-docs.tar.bz2") - c.run(f"rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./docs/_build/latex/{pdf} {username}@{docs_host}:{directory}") + rsync_cmd = " ".join([ + "rsync", + "--checksum", + "--recursive", + "--verbose", + "--no-p", + "--chmod=g=rwX", + "--exclude '*~'", + ]) + c.run(f"{rsync_cmd} --delete ./docs/_build/{product}-html-docs/ {username}@{docs_host}:{directory}") + c.run(f"{rsync_cmd} ./docs/_build/{product}-html-docs.tar.bz2 {username}@{docs_host}:{directory}/html-docs.tar.bz2") + c.run(f"{rsync_cmd} ./docs/_build/latex/{pdf} {username}@{docs_host}:{directory}") @task def ci_docs_add_ssh(c, ssh_key, host_key):