Search also in "en" locale if not found in local translated description or when there

is no local translation.

BUG:FIXED:7995
This commit is contained in:
Faik Uygur
2008-12-29 13:04:00 +00:00
parent 4b106ffee5
commit 9febed83a5
+2 -2
View File
@@ -88,8 +88,8 @@ class PackageDB(lazydb.LazyDB):
return pkg
def search_package(self, terms, lang=None, repo=None):
resum = '<Summary xml:lang="%s">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="%s">.*?%s.*?</Description>'
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="(%s|en)">.*?%s.*?</Description>'
if not lang:
lang = pisi.pxml.autoxml.LocalText.get_lang()
found = []