Permalink
Browse files

Bug 649972 - Random failures with "hdiutil eject" during partner repa…

…cks on macosx64. r=coop
  • Loading branch information...
1 parent 06d57c7 commit 57480a8274684a445fe7b8e15122b79eb2bacad7 @rail rail committed Apr 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 scripts/partner-repacks.py
@@ -432,6 +432,9 @@ def unpackBuild(self):
shellCommand(attach_cmd)
rsync_cmd = "rsync -a %s/ stage/" % self.mountpoint
shellCommand(rsync_cmd)
+ # Flush disk cache to prevent "Resource busy" failures
+ sync_cmd = "/bin/sync"
+ shellCommand(sync_cmd)
eject_cmd = "hdiutil eject %s %s" % (quiet_flag, self.mountpoint)
shellCommand(eject_cmd)

0 comments on commit 57480a8

Please sign in to comment.