On Thu, Mar 27, 2008 at 10:50:45AM -0300, Nelson A. de Oliveira wrote: > ept-cache started to fail with this message: > KeyError: 'Description-pt%5fBR' > got an exit code of 256. Context: running update-apt-xapian-index
Hello, could you please try to apply the attached patch to /usr/share/apt-xapian-index/plugins/translated-desc.py and see if it fixes the issue? I'm confident that it does, but it's afaik only testable on a pt_BR sid system. The procedure should be: cd /usr/share/apt-xapian-index/plugins/ patch translated-desc.py < translated-desc.patch Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
diff --git a/plugins/translated-desc.py b/plugins/translated-desc.py
index fe80772..79b5f6a 100644
--- a/plugins/translated-desc.py
+++ b/plugins/translated-desc.py
@@ -1,7 +1,7 @@
import apt
import xapian
import re
-import os, os.path
+import os, os.path, urllib
from debian_bundle import deb822
APTLISTDIR="/var/lib/apt/lists"
@@ -31,7 +31,7 @@ class Indexer:
# Read the translated descriptions
self.descs = dict()
- desckey = "Description-"+self.lang
+ desckey = "Description-"+urllib.unquote(self.lang)
for pkg in deb822.Deb822.iter_paragraphs(open(file)):
self.descs[pkg["Package"]] = pkg[desckey]
signature.asc
Description: Digital signature

