Skip to content

Commit fb64621

Browse files
Mitigate macOS race condition in installer build (GH-6686) (GH-6688)
(cherry picked from commit fc6aa28) Co-authored-by: Ned Deily <[email protected]>
1 parent 8ac4418 commit fb64621

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
@@ -1523,6 +1523,10 @@ def buildDMG():
15231523
shellQuote(os.path.join(WORKDIR, 'installer')),
15241524
shellQuote(imagepath + ".tmp.dmg" )))
15251525

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

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

0 commit comments

Comments
 (0)