8000 FIX: Do not delete when doing quick run: it may delete zip files. · python/docsbuild-scripts@9efd4d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9efd4d5

Browse files
committed
FIX: Do not delete when doing quick run: it may delete zip files.
1 parent 13a367b commit 9efd4d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_docs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def build_one(version, isdev, quick, venv, build_root, www_root,
215215
shell_out("chown -R :{} Doc/build/html/".format(group))
216216
shell_out("chmod -R o+r Doc/build/html/")
217217
shell_out("find Doc/build/html/ -type d -exec chmod o+x {} ';'")
218-
shell_out("rsync -a --delete-delay Doc/build/html/ %s" % target)
218+
shell_out("rsync -a {delete} Doc/build/html/ {target}".format(
219+
delete="" if quick else "--delete-delay",
220+
target=targ 48BD et))
219221
if not quick:
220222
logging.debug("Copying dist files")
221223
shell_out("chown -R :{} Doc/dist/".format(group))

0 commit comments

Comments
 (0)
0