Some package names in the details section of "language support is not installed completely"-dialog are wrapped after each character
Bug #455370 reported by
Markus Korn
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Low
|
Arne Goetje | ||
Karmic |
Fix Released
|
Low
|
Arne Goetje |
Bug Description
Binary package hint: language-selector
Please see the attached screencast for an example: some package names in the Details section of this Dialog have a new line after each character.
ProblemType: Bug
Architecture: i386
Date: Mon Oct 19 13:08:39 2009
DistroRelease: Ubuntu 9.10
Package: language-selector 0.4.13
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: language-selector
Tags: ubuntu-unr
Uname: Linux 2.6.31-14-generic i686
Related branches
lp:~arnegoetje/language-selector/language-selector-karmic
- Michael Vogt: Pending requested
- Martin Pitt: Pending requested
- Diff: None lines
Changed in language-selector (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in language-selector (Ubuntu): | |
importance: | Medium → Low |
Changed in language-selector (Ubuntu Karmic): | |
assignee: | nobody → Arne Goetje (arnegoetje) |
To post a comment you must log in.
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)