8000 Only copy archive files if the dist directory exists (#273) · python/docsbuild-scripts@feef5f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit feef5f1

Browse files
authored
Only copy archive files if the dist directory exists (#273)
1 parent 7a9bca9 commit feef5f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build_docs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,9 @@ def copy_build_to_webroot(self, http: urllib3.PoolManager) -> None:
784784
target,
785785
])
786786

787-
if not self.quick:
787+
if not self.quick and (self.checkout / "Doc" / "dist").is_dir():
788788
# Copy archive files to /archives/
789789
logging.debug("Copying dist files.")
790-
(self.checkout / "Doc" / "dist").mkdir(exist_ok=True)
791790
run([
792791
"chown",
793792
"-R",

0 commit comments

Comments
 (0)
0