]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Cleanup the ci_docs_upload_master pyinvoke task
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 28 Feb 2023 14:49:26 +0000 (15:49 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Fri, 21 Apr 2023 07:08:41 +0000 (09:08 +0200)
tasks.py

index e9b5809c30117b9f0572e3ddf0d2bdfbdf566a6f..fee0b6b646bddfdbb2aebfd36934801acb319852 100644 (file)
--- 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):