Skip to content

Commit 690e464

Browse files
committed
auto merge of #11291 : brson/rust/copy-runtime-deps, r=alexcrichton
In copying the license for the third-party bins it is attempting to delete a directory that doesn't exist.
2 parents 239fb1f + f86d079 commit 690e464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/etc/copy-runtime-deps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def copy_runtime_deps(dest_dir):
1010
shutil.copy(path, dest_dir)
1111

1212
lic_dest = os.path.join(dest_dir, "third-party")
13-
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
13+
if os.path.exists(lic_dest):
14+
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
1415
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest)
1516

1617
copy_runtime_deps(sys.argv[1])

0 commit comments

Comments
 (0)