summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-03-18 19:40:17 +0000
committerJeremy Katz <katzj@redhat.com>2002-03-18 19:40:17 +0000
commite6a3eabc5cb7f76fc1aae39bd86fc8f90f4f2975 (patch)
treef9672f0b2d03eb78c8947063912f1cf81fe8ffba /gui.py
parent7320b072592b11714b7381a65beaa35ca51b4a7e (diff)
downloadanaconda-e6a3eabc5cb7f76fc1aae39bd86fc8f90f4f2975.tar.gz
anaconda-e6a3eabc5cb7f76fc1aae39bd86fc8f90f4f2975.tar.xz
anaconda-e6a3eabc5cb7f76fc1aae39bd86fc8f90f4f2975.zip
break out of all the loops so i18n help works (#61351)
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 6570efecd..5ac559136 100755
--- a/gui.py
+++ b/gui.py
@@ -902,13 +902,20 @@ class InstallControlState:
arch = "-%s" % (iutil.getArch(),)
tags = [ "%s%s" % (helpTag, arch), "%s" % (helpTag,),
"%s" % (arch,), "" ]
-
+
+ found = 0
for path in self.searchPath:
+ if found:
+ break
for lang in langPath + ['C']:
+ if found:
+ break
for tag in tags:
try:
text = open("%s/help/%s/s1-help-screens-%s%s.html"
% (path, lang, file, tag)).read ()
+ found = 1
+ break
except IOError:
continue
else: