Skip to content

Commit fc6aa28

Browse files
authored
Mitigate macOS race condition in installer build (GH-6686)
1 parent 0dd8070 commit fc6aa28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mac/BuildScript/build-installer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,10 @@ def buildDMG():
15241524
shellQuote(os.path.join(WORKDIR, 'installer')),
15251525
shellQuote(imagepath + ".tmp.dmg" )))
15261526

1527+
# Try to mitigate race condition in certain versions of macOS, e.g. 10.9,
1528+
# when hdiutil fails with "Resource busy"
1529+
1530+
time.sleep(10)
15271531

15281532
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
15291533
os.mkdir(os.path.join(WORKDIR, "mnt"))

0 commit comments

Comments
 (0)