search problem with double quote.. is this python 2.6 related... dont know
This commit is contained in:
@@ -145,8 +145,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|en)">.*?%s.*?</Summary>'
|
||||
redesc = '<Description xml:lang="(%s|en)">.*?%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 = []
|
||||
|
||||
@@ -85,8 +85,8 @@ class PackageDB(lazydb.LazyDB):
|
||||
return pkg
|
||||
|
||||
def search_package(self, terms, lang=None, repo=None):
|
||||
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
|
||||
redesc = '<Description xml:lang="(%s|en)">.*?%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
@@ -83,8 +83,8 @@ class SourceDB(lazydb.LazyDB):
|
||||
return spec
|
||||
|
||||
def search_spec(self, terms, lang=None, repo=None):
|
||||
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
|
||||
redesc = '<Description xml:lang="(%s|en)">.*?%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 = []
|
||||
|
||||
Reference in New Issue
Block a user