diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-03-01 00:57:40 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-03-01 00:57:40 +0000 |
commit | 9f6ec0cef971c785feeab0a446345027376f40a4 (patch) | |
tree | dbe31206a6bcf546844ff18e4d7a09040ef34973 /gui.py | |
parent | ed6af67530adfa19b2d7d4f587e3a7c5c7ddaa9b (diff) | |
download | anaconda-9f6ec0cef971c785feeab0a446345027376f40a4.tar.gz anaconda-9f6ec0cef971c785feeab0a446345027376f40a4.tar.xz anaconda-9f6ec0cef971c785feeab0a446345027376f40a4.zip |
merge help tag, architecture support from hampton branch
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 26 |
1 files changed, 19 insertions, 7 deletions
@@ -987,16 +987,28 @@ class InstallControlState: text = None if self.htmlFile: file = self.htmlFile + + if self.cw.configFileData.has_key("helptag"): + helpTag = "-%s" % (self.cw.configFileData["helptag"],) + else: + helpTag = "" + + arch = "-%s" % (iutil.getArch(),) + tags = [ "%s%s" % (helpTag, arch), "%s" % (helpTag,), + "%s" % (arch,), "" ] for path in self.searchPath: for lang in langPath + ['C']: - try: - text = open("%s/help/%s/s1-help-screens-%s.html" % - (path, lang, file)).read () - except IOError: - continue - else: - break + for tag in tags: + try: + text = open("%s/help/%s/s1-help-screens-%s%s.html" + % (path, lang, file, tag)).read () + except IOError: + continue + else: + break + if text: + break if text: return text |