From: Ned Deily Date: Wed, 2 May 2018 05:41:15 +0000 (-0400) Subject: Mitigate macOS race condition in installer build (GH-6686) X-Git-Tag: v3.8.0a1~1893 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc6aa28bfd0502d994cec30bd3679b7def3be2af;p=thirdparty%2FPython%2Fcpython.git Mitigate macOS race condition in installer build (GH-6686) --- diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 68868d97a65c..d2b04d163ab4 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1524,6 +1524,10 @@ def buildDMG(): shellQuote(os.path.join(WORKDIR, 'installer')), shellQuote(imagepath + ".tmp.dmg" ))) + # Try to mitigate race condition in certain versions of macOS, e.g. 10.9, + # when hdiutil fails with "Resource busy" + + time.sleep(10) if not os.path.exists(os.path.join(WORKDIR, "mnt")): os.mkdir(os.path.join(WORKDIR, "mnt"))