summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-22 16:06:58 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-22 16:06:58 +0000
commit87afad0d14da6c1890866303739c443a08ce113e (patch)
tree935c043b86bf8291846cb33adacee568970139f1 /gui.py
parent4bf4760e0424c5cc3a3b8dcdac3518735c221b44 (diff)
downloadanaconda-87afad0d14da6c1890866303739c443a08ce113e.tar.gz
anaconda-87afad0d14da6c1890866303739c443a08ce113e.tar.xz
anaconda-87afad0d14da6c1890866303739c443a08ce113e.zip
fix finding help in other languages
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index 0a6726fab..a0fa6b690 100755
--- a/gui.py
+++ b/gui.py
@@ -1002,17 +1002,22 @@ 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:
- break
if text:
break