File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,11 @@ def verify_vcpkg_build(vcpkg_triplet, attempt_auto_fix=False):
193
193
# Manually renaming and re-running script makes it go through.
194
194
tools_dir_path = os .path .join (vcpkg_root_dir_path , 'downloads' , 'tools' )
195
195
for name in os .listdir (tools_dir_path ):
196
+ # In the specific windows error that we noticed, the error occurs while
197
+ # trying to rename intermediate directories for donwloaded tools
198
+ # like "powershell.partial.<pid>" to "powershell". Renaming via python
199
+ # also runs into the same error. Workaround is to copy instead of rename.
196
200
if '.partial.' in name and os .path .isdir (os .path .join (tools_dir_path , name )):
197
- # Since we can't rename, lets copy the directory to one without partial in the name
198
201
expected_name = name .split ('.partial.' )[0 ]
199
202
shutil .copytree (os .path .join (tools_dir_path , name ),
200
203
os .path .join (tools_dir_path , expected_name ))
You can’t perform that action at this time.
0 commit comments