[yum-git] yum/__init__.py
Tim Lauridsen
timlau at linux.duke.edu
Sat Feb 23 16:42:51 UTC 2008
yum/__init__.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4b1884ccb69df6ce7fd90446a9e5a7f89065707d
Author: Tim Lauridsen <tim at naboo.local>
Date: Sat Feb 23 17:40:13 2008 +0100
added some unicode convertion to searchGenerator to make sure that summary,description always are unicode, to avoid to errors using search generator from a DBUS method, with summary and description containing non ascii chars
diff --git a/yum/__init__.py b/yum/__init__.py
index 1dff886..a842076 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1485,6 +1485,9 @@ class YumBase(depsolve.Depsolve):
matched_s = False
for field in fields:
value = getattr(po, field)
+ # make sure that string are in unicode
+ if isinstance(value, str):
+ value = unicode(value,'unicode-escape')
if value and value.lower().find(s) != -1:
if not matched_s:
criteria_matched += 1
More information about the Yum-cvs-commits
mailing list