Minor doc and formatting update to previous commit; no functional difference

This commit is contained in:
Heig Gregorian
2012-08-22 14:07:59 -07:00
parent ca3786fe8a
commit 93fa3f837c

View File

@@ -849,12 +849,12 @@ def unmountdmg(mountpoint):
stderr=subprocess.PIPE)
(unused_output, err) = proc.communicate()
if proc.returncode:
cmd.append('-force')
# ordinary unmount unsuccessful, try forcing
display_warning('Polite unmount failed: %s' % err)
display_warning('Attempting to force unmount %s' % mountpoint)
# try forcing the unmount
cmd.append('-force')
proc = subprocess.Popen(cmd, bufsize=1, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stderr=subprocess.PIPE)
if proc.returncode:
display_warning('Failed to unmount %s' % mountpoint)