summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-05 19:53:38 +0000
committerErik Troan <ewt@redhat.com>2000-05-05 19:53:38 +0000
commit1cf308303cf227738000f8a66bd2173190678a2f (patch)
tree3636419567cd3a6d13c6d94c9630f7de274bae29 /text.py
parentb04ac2a2f48c8c8c6d6894d58efabf391fd4ec81 (diff)
downloadanaconda-1cf308303cf227738000f8a66bd2173190678a2f.tar.gz
anaconda-1cf308303cf227738000f8a66bd2173190678a2f.tar.xz
anaconda-1cf308303cf227738000f8a66bd2173190678a2f.zip
dsiplay no help is available message rather then recursing endlessly
Diffstat (limited to 'text.py')
-rw-r--r--text.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/text.py b/text.py
index 5b453f6e4..dd32f463c 100644
--- a/text.py
+++ b/text.py
@@ -758,7 +758,7 @@ class ProgressWindow:
class InstallInterface:
- def helpWindow(self, screen, key):
+ def helpWindow(self, screen, key, firstTime = 1):
try:
lang = cat.getlangs()
if not lang or lang[0] == "en_US":
@@ -770,8 +770,14 @@ class InstallInterface:
% (lang, key)
try:
f = open(fn)
- except IOError:
- return self.helpWindow(screen, "helponhelp")
+ except IOError, msg:
+ if firstTime:
+ return self.helpWindow(screen, "helponhelp", firstTime = 0)
+ else:
+ ButtonChoiceWindow(screen, _("Help not available"),
+ _("No help is available for this install."),
+ buttons = [ _("OK") ])
+ return None
l = f.readlines()
while not string.strip(l[0]):