[PATCH] langsupport spoke: keep data.lang.lang first in status of spoke

Radek Vykydal rvykydal at redhat.com
Thu Apr 25 06:53:50 UTC 2013


---
 pyanaconda/ui/gui/spokes/langsupport.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/langsupport.py b/pyanaconda/ui/gui/spokes/langsupport.py
index 2dc9727..e45c153 100644
--- a/pyanaconda/ui/gui/spokes/langsupport.py
+++ b/pyanaconda/ui/gui/spokes/langsupport.py
@@ -115,9 +115,11 @@ class LangsupportSpoke(NormalSpoke):
     @property
     def status(self):
         # TODO: translate
-        infos = set(self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1])
+        infos = self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1]
         for code in self.data.lang.addsupport:
-            infos.update(self._find_localeinfos_for_code(code, self.locale_infos_for_data))
+            for info in self._find_localeinfos_for_code(code, self.locale_infos_for_data):
+                if info not in infos:
+                    infos.append(info)
         return ", ".join(info.english_name for info in infos)
 
     @property
-- 
1.7.11.7



More information about the anaconda-patches mailing list