On Thu, Mar 27, 2008 at 10:50:45AM -0300, Nelson A. de Oliveira wrote: > ept-cache started to fail with this message: > # ept-cache reindex > Reading pt%5fBR translations... > Traceback (most recent call last): > File "/usr/sbin/update-apt-xapian-index", line 410, in ? > addon.obj.init(dict(values = values), progress) > File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 84, in > init > self.indexers.append(Indexer(lang, file)) > File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 36, in > __init__ > self.descs[pkg["Package"]] = pkg[desckey] > File "/var/lib/python-support/python2.4/debian_bundle/deb822.py", line 95, > in __getitem__ > return self.__dict[key] > KeyError: 'Description-pt%5fBR' > got an exit code of 256. Context: running update-apt-xapian-index > Maybe an error on some package's pt_BR translation?
Thanks for reporting. I see where the problem is: the apt-xapian-index plugin for translations tries to get the locale name from the file name, and use that to access the translated description field. I did not know, however, that the file name would be mangled: this means that I need to urldecode the locale name from the file name before looking it up in the file contents. It looks like an easy fix. I'm reassigning to apt-xapian-index because that's where the problem is: ept-cache reindex calls update-apt-xapian-index behind the scenes. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature

