]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed syntax errors in harddrive.py.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Aug 2008 09:14:58 +0000 (09:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Aug 2008 09:14:58 +0000 (09:14 +0000)
src/pomona/src/harddrive.py

index 492b3b0f8b5f3bc39787dc04b6833e3b2667c8f8..5d549962d7141ca3a56a3d5a5398bc9b4a820665 100644 (file)
@@ -68,21 +68,21 @@ class HardDriveInstallMethod(InstallMethod):
 
                 retry = False
             except:
-            ans = self.messageWindow( _("Missing ISO 9660 Image"),
-                                      _("The installer has tried to mount "
-                                        "image #%s, but cannot find it on "
-                                        "the hard drive.\n\n"
-                                        "Please copy this image to the "
-                                        "drive and click Retry. Click Reboot "
-                                        " to abort the installation.")
-                                        % (cdNum,), type="custom",
+                ans = self.messageWindow(_("Missing ISO 9660 Image"),
+                                         _("The installer has tried to mount "
+                                           "image #%s, but cannot find it on "
+                                           "the hard drive.\n\n"
+                                           "Please copy this image to the "
+                                           "drive and click Retry. Click Reboot "
+                                           " to abort the installation.")
+                                         % (cdNum,), type="custom",
                                            custom_icon="warning",
                                            custom_buttons=[_("_Reboot"),
                                            _("Re_try")])
-            if ans == 0:
-                sys.exit(0)
-            elif ans == 1:
-                self.discImages = findIsoImages(self.isoPath, self.messageWindow)
+                if ans == 0:
+                    sys.exit(0)
+                elif ans == 1:
+                    self.discImages = findIsoImages(self.isoPath, self.messageWindow)
 
     def umountMedia(self):
         if self.mediaIsMounted: