=== modified file 'LanguageSelector/LanguageSelector.py'
--- LanguageSelector/LanguageSelector.py 2009-09-17 22:41:58 +0000
+++ LanguageSelector/LanguageSelector.py 2009-10-19 11:20:42 +0000
@@ -96,7 +96,7 @@
if pkgcode in self._cache.pkg_translations: for (pkg, translation) in self._cache.pkg_translations[pkgcode]: if (self._cache[pkg].isInstalled and not self._cache[translation].isInstalled):
- missing += translation
+ missing.append(translation) support_packages = LanguageSelectorPkgCache._getPkgList(self._cache, pkgcode)
for support_package in support_packages:
if (support_package in self._cache and
'translation' is always a string, this is why 'missing += translation' does not work as intended (it adds each character to the 'missing' list)
Fixing this bug is very easy:
=== modified file 'LanguageSelect or/LanguageSele ctor.py' r/LanguageSelec tor.py 2009-09-17 22:41:58 +0000 r/LanguageSelec tor.py 2009-10-19 11:20:42 +0000 pkg_translation s:
for (pkg, translation) in self._cache. pkg_translation s[pkgcode] :
if (self._ cache[pkg] .isInstalled and not self._cache[ translation] .isInstalled) : append( translation)
support_ packages = LanguageSelecto rPkgCache. _getPkgList( self._cache, pkgcode)
--- LanguageSelecto
+++ LanguageSelecto
@@ -96,7 +96,7 @@
if pkgcode in self._cache.
- missing += translation
+ missing.
for support_package in support_packages:
if (support_package in self._cache and
'translation' is always a string, this is why 'missing += translation' does not work as intended (it adds each character to the 'missing' list)