Skip to content

Commit

Permalink
Builder: Retry clearing the build work directory a few times
Browse files Browse the repository at this point in the history
It appears on Windows some of the files in the work directory
are kept locked for a while (?).
  • Loading branch information
skyjake committed Mar 20, 2016
1 parent 4831c74 commit 2bcff3d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion distrib/platform_release.py
Expand Up @@ -44,7 +44,16 @@ def mkdir(n):


def remkdir(n):
builder.utils.remkdir(n)
attempts = 10
while attempts > 0:
try:
builder.utils.remkdir(n)
return
except:
pass
attempts -= 1
time.sleep(5)
raise Exception("Failed to clear directory: " + n)


def remove(n):
Expand Down

0 comments on commit 2bcff3d

Please sign in to comment.