change here too, for fallback to en

This commit is contained in:
Faik Uygur
2008-12-29 13:10:36 +00:00
parent 9febed83a5
commit 86dd5ec402
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -66,9 +66,9 @@ class ComponentDB(lazydb.LazyDB):
return self.cdb.get_item_keys(repo)
def search_component(self, terms, lang=None, repo=None):
rename = '<LocalName xml:lang="%s">.*?%s.*?</LocalName>'
resum = '<Summary xml:lang="%s">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="%s">.*?%s.*?</Description>'
rename = '<LocalName xml:lang="(%s|en)">.*?%s.*?</LocalName>'
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()
+2 -2
View File
@@ -130,8 +130,8 @@ class InstallDB(lazydb.LazyDB):
return filter(lambda x: x.type == 'config', files.list)
def search_package(self, terms, lang=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 = []
+2 -2
View File
@@ -81,8 +81,8 @@ class SourceDB(lazydb.LazyDB):
return spec
def search_spec(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 = []