diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-05 11:41:45 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-05 12:51:37 -0500 |
commit | 1fed7809dc4704c78a54b0f33673a1107e374b51 (patch) | |
tree | eb380c2296f0bdf5dca60b105d7108e181ff308f | |
parent | 655419771822f9bb32f227957c6a3f1bed036ce2 (diff) | |
download | anaconda-1fed7809dc4704c78a54b0f33673a1107e374b51.tar.gz anaconda-1fed7809dc4704c78a54b0f33673a1107e374b51.tar.xz anaconda-1fed7809dc4704c78a54b0f33673a1107e374b51.zip |
Check to see if we're on S390 on the congrats screen (#488747).
This continues the war on calling iutil.isWhatever() everywhere. We can
start using the platform module for that.
-rw-r--r-- | iw/congrats_gui.py | 3 | ||||
-rw-r--r-- | textw/complete_text.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/iw/congrats_gui.py b/iw/congrats_gui.py index b5f0101cf..0df2d807e 100644 --- a/iw/congrats_gui.py +++ b/iw/congrats_gui.py @@ -23,6 +23,7 @@ import gui from iw_gui import * from constants import * import os +import platform import gettext _ = lambda x: gettext.ldgettext("anaconda", x) @@ -69,7 +70,7 @@ class CongratulationWindow (InstallWindow): a.set_size_request(200, -1) hbox.pack_start (a, False, False, 36) - if iutil.isS390(): + if isinstance(anaconda.platform, platform.S390): txt = _("Congratulations, your %s installation is complete.\n\n") % (productName,) if not anaconda.canReIPL: diff --git a/textw/complete_text.py b/textw/complete_text.py index 1793cab10..fc4e5c1f9 100644 --- a/textw/complete_text.py +++ b/textw/complete_text.py @@ -22,6 +22,7 @@ from snack import * from constants_text import * from constants import * import gettext +import platform _ = lambda x: gettext.ldgettext("anaconda", x) class FinishedWindow: @@ -34,7 +35,7 @@ class FinishedWindow: screen.pushHelpLine (string.center(bottomstr, screen.width)) - if iutil.isS390(): + if isinstance(anaconda.platform, platform.S390): txt = _("Congratulations, your %s installation is complete.\n\n") % (productName,) if not anaconda.canReIPL: |