rmtree: Don't retry when the file is not found

No need to pointlessly loop for several seconds in this case.
pull/3103/head
Nirbheek Chauhan 7 years ago committed by Jussi Pakkanen
parent b2007217e0
commit aeee01f639
  1. 2
      mesonbuild/mesonlib.py

@ -903,6 +903,8 @@ def windows_proof_rmtree(f):
try:
shutil.rmtree(f)
return
except FileNotFoundError:
return
except (OSError, PermissionError):
time.sleep(d)
# Try one last time and throw if it fails.

Loading…
Cancel
Save