Skip to content

Commit 4f620e1

Browse files
committed
Avoid flooding the logs with curl progress meter.
1 parent 2ccb988 commit 4f620e1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build_docs.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,14 @@ def build_robots_txt(www_root, group, skip_cache_invalidation):
479479
os.chmod(robots_file, 0o775)
480480
run(["chgrp", group, robots_file])
481481
if not skip_cache_invalidation:
482-
run(["curl", "-XPURGE", "https://docs.python.org/robots.txt"])
482+
run(
483+
[
484+
"curl",
485+
"--silent",
486+
"-XPURGE",
487+
"https://docs.python.org/robots.txt",
488+
]
489+
)
483490

484491

485492
def build_sitemap(www_root):

0 commit comments

Comments
 (0)