summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-04-13 18:54:39 +0000
committerChris Lumens <clumens@redhat.com>2005-04-13 18:54:39 +0000
commit2634794d3866667e1e897c1cf2b1be34b4009f75 (patch)
tree444fef5783d043e1c5069c888de0fcde86cbed60 /text.py
parent2e1d6920edb7b4e226c691fca61c35b2961e0b45 (diff)
downloadanaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.tar.gz
anaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.tar.xz
anaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.zip
Don't set the list of supported languages in Language.__init__ by default.
Instead, only set this list in the install interfaces if kickstart hasn't taken care of it already.
Diffstat (limited to 'text.py')
-rw-r--r--text.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/text.py b/text.py
index 3ecfb7153..ddee3ac9c 100644
--- a/text.py
+++ b/text.py
@@ -436,8 +436,12 @@ class InstallInterface:
id.fsset.registerMessageWindow(self.messageWindow)
id.fsset.registerProgressWindow(self.progressWindow)
id.fsset.registerWaitWindow(self.waitWindow)
- id.instLanguage.setSupported([id.instLanguage.getDefault()])
- parted.exception_set_handler(self.partedExceptionWindow)
+
+ # Don't set if kickstart already set up a supported lang list.
+ if not id.instLanguage.getSupported():
+ id.instLanguage.setSupported([id.instLanguage.getDefault()])
+
+ parted.exception_set_handler(self.partedExceptionWindow)
lastrc = INSTALL_OK
(step, args) = dispatch.currentStep()