diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-05-22 16:06:58 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-05-22 16:06:58 +0000 |
commit | 87afad0d14da6c1890866303739c443a08ce113e (patch) | |
tree | 935c043b86bf8291846cb33adacee568970139f1 /gui.py | |
parent | 4bf4760e0424c5cc3a3b8dcdac3518735c221b44 (diff) | |
download | anaconda-87afad0d14da6c1890866303739c443a08ce113e.tar.gz anaconda-87afad0d14da6c1890866303739c443a08ce113e.tar.xz anaconda-87afad0d14da6c1890866303739c443a08ce113e.zip |
fix finding help in other languages
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |