mdist: Use windows_proof_rmtree when deleting

This commit is contained in:
Nirbheek Chauhan 2020-02-16 00:19:04 +05:30 committed by Jussi Pakkanen
parent 8650c763d9
commit b7c70c47a6
1 changed files with 4 additions and 4 deletions

View File

@ -201,7 +201,7 @@ def check_dist(packagename, meson_command, extra_meson_args, bld_root, privdir):
installdir = os.path.join(privdir, 'dist-install')
for p in (unpackdir, builddir, installdir):
if os.path.exists(p):
shutil.rmtree(p)
windows_proof_rmtree(p)
os.mkdir(p)
ninja_bin = detect_ninja()
shutil.unpack_archive(packagename, unpackdir)
@ -217,9 +217,9 @@ def check_dist(packagename, meson_command, extra_meson_args, bld_root, privdir):
if ret > 0:
print('Dist check build directory was {}'.format(builddir))
else:
shutil.rmtree(unpackdir)
shutil.rmtree(builddir)
shutil.rmtree(installdir)
windows_proof_rmtree(unpackdir)
windows_proof_rmtree(builddir)
windows_proof_rmtree(installdir)
print('Distribution package %s tested' % packagename)
return ret