Browse files

mount+edit warning message is getting lost if you are booting partiti…

…ons with pygrub (which some people like to do)
  • Loading branch information...
1 parent 5b12fea commit e3d2a74fd1a5bc26a35aff6ca0f0fd31d00c385f @timf timf committed Jul 30, 2010
Showing with 6 additions and 4 deletions.
  1. +6 −4 control/src/python/workspacecontrol/defaults/ImageEditing.py
View
10 control/src/python/workspacecontrol/defaults/ImageEditing.py
@@ -426,10 +426,12 @@ def _doOneMountCopyTask(self, imagepath, src, dst, mntpath, hdimage):
cmd = "%s %s one %s %s %s %s" % (self.sudo_path, self.mounttool_path, imagepath, mntpath, src, dst)
warning = self._doOneMountCopyInnerTask(src, cmd)
if warning:
- offsetint = self._guess_offset(imagepath)
- cmd = "%s %s hdone %s %s %s %s %d" % (self.sudo_path, self.mounttool_path, imagepath, mntpath, src, dst, offsetint)
- error = self._doOneMountCopyInnerTask(src, cmd)
-
+ try:
+ offsetint = self._guess_offset(imagepath)
+ cmd = "%s %s hdone %s %s %s %s %d" % (self.sudo_path, self.mounttool_path, imagepath, mntpath, src, dst, offsetint)
+ error = self._doOneMountCopyInnerTask(src, cmd)
+ except Exception,e:
+ error = e
if not error:
return # if there is a warning, it is discarded
if not warning:

0 comments on commit e3d2a74

Please sign in to comment.