Skip to content

Commit 4e1b965

Browse files
committed
Only copy archive files if the dist directory exists
1 parent 7a9bca9 commit 4e1b965

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build_docs.py

+1-2
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)