summaryrefslogtreecommitdiffstats
path: root/textw/complete_text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-12-27 21:46:27 +0000
committerJeremy Katz <katzj@redhat.com>2001-12-27 21:46:27 +0000
commit2a0b356be674c8827203802ffaa11a43c2890b38 (patch)
tree838d4d0aa790415a58d59546f10d749103ce4c9f /textw/complete_text.py
parent7d54bec35d75d39ac8aa5c04fecde718ef90046f (diff)
downloadanaconda-2a0b356be674c8827203802ffaa11a43c2890b38.tar.gz
anaconda-2a0b356be674c8827203802ffaa11a43c2890b38.tar.xz
anaconda-2a0b356be674c8827203802ffaa11a43c2890b38.zip
make this a little cleaner
Diffstat (limited to 'textw/complete_text.py')
-rw-r--r--textw/complete_text.py44
1 files changed, 18 insertions, 26 deletions
diff --git a/textw/complete_text.py b/textw/complete_text.py
index 47f78ff30..0eb52b460 100644
--- a/textw/complete_text.py
+++ b/textw/complete_text.py
@@ -18,50 +18,42 @@ import iutil
class FinishedWindow:
-
- if (iutil.getArch() != "s390" and iutil.getArch() != "s390x"):
-
- def __call__ (self, screen):
+
+ def __call__ (self, screen):
screen.pushHelpLine (string.center(_("<Enter> to reboot"),
screen.width))
if iutil.getArch() != "ia64":
- bootstr = _("If you created a boot disk to use to boot your "
+ bootstr = _("If you created a boot disk to use to boot your "
"Red Hat Linux system, insert it before you "
"press <Enter> to reboot.\n\n")
else:
- bootstr = ""
+ bootstr = ""
+
+ if iutil.getArch() == "s390" or iutil.getArch() == "s390x":
+ floppystr = ""
+ else:
+ floppystr = _("Remove any floppy diskettes you used during the "
+ "installation process and press <Enter> to reboot "
+ "your system."
+ "\n\n")
+
- rc = ButtonChoiceWindow (screen, _("Complete"),
+ rc = ButtonChoiceWindow (screen, _("Complete"),
_("Congratulations, your Red Hat Linux installation is "
"complete.\n\n"
- "Remove any floppy diskettes you used during the "
- "installation process and press <Enter> to reboot your system. "
- "\n\n"
+ "%s"
"%s"
"For information on errata (updates and bug fixes), visit "
"http://www.redhat.com/errata.\n\n"
"Information on using your "
"system is available in the Red Hat Linux manuals at "
- "http://www.redhat.com/support/manuals.") % bootstr,
- [ _("OK") ], help = "finished", width=60)
+ "http://www.redhat.com/support/manuals.") %
+ (floppystr, bootstr),
+ [ _("OK") ], help = "finished", width=60)
return INSTALL_OK
- else:
-
- def __call__ (self, screen):
- screen.pushHelpLine (string.center(_("<Enter> to continue"),
- screen.width))
- rc = ButtonChoiceWindow (screen, _("Complete"),
- _("Congratulations, package installation is complete.\n\n"
- "Press return to continue.\n\n"
- "Information on configuring and using your Red Hat "
- "Linux system is contained in the Red Hat Linux "
- "manuals."),
- [ _("OK") ], help = "finished")
- return INSTALL_OK
-
class ReconfigFinishedWindow:
def __call__ (self, screen):