Commit 5c7d9d33 authored by arbennett's avatar arbennett
Browse files

Forcing unmount of dmgs.

parent 7664411b
...@@ -212,11 +212,11 @@ def undmg_package(pkg, file_path, out_path): ...@@ -212,11 +212,11 @@ def undmg_package(pkg, file_path, out_path):
mkdir_p(mnt_point) mkdir_p(mnt_point)
mount_cmd = ['hdiutil', 'attach', '-mountpoint', mnt_point, file_path, '-quiet'] mount_cmd = ['hdiutil', 'attach', '-mountpoint', mnt_point, file_path, '-quiet']
unmount_cmd = ['hdiutil', 'detach', mnt_point, '-force', '-quiet'] unmount_cmd = ['hdiutil', 'detach', mnt_point, '-force', '-quiet']
subprocess.Popen(unmount_cmd)
subprocess.Popen(mount_cmd) subprocess.Popen(mount_cmd)
time.sleep(3) time.sleep(3)
content = find_dir(mnt_point, "Resources") content = find_dir(mnt_point, "Resources")
if content is None: if content is None:
print "could not find"
return return
print " Copying " + content + " to " + os.path.join(out_path,pkg) + "...." print " Copying " + content + " to " + os.path.join(out_path,pkg) + "...."
if os.path.exists(os.path.join(out_path, pkg)): if os.path.exists(os.path.join(out_path, pkg)):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment