https://bugzilla.novell.com/show_bug.cgi?id=255914 jmatejek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC|cthiel@novell.com |jmatejek@novell.com AssignedTo|jmatejek@novell.com |cthiel@novell.com Status|ASSIGNED |NEW ------- Comment #14 from jmatejek@novell.com 2007-04-27 10:10 MST ------- okay. this one was really stupid and it took me all that time to figure it out, but ... well, things happen. it is fortunately not a bug in python. this line: File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 121, in searchPrco
mi = ts.dbMatch(tag, name) for argument "name", rpm-python accepts type String, yum supplies type Unicode.
simplest solution is in yum, along the lines of
mi = ts.dbMatch(tag, name.encode('us-ascii')) (if I apply this, yum fails on some other place with exactly the same problem, fixed in exactly the same manner. i didn't examine deeper)
Christoph, returning it back to you, it's your call about what to do now. You might use this solution (note that it breaks when non-ascii character gets into the name), or figure out why the Unicode even gets there. (it just might be that this is the underyling bug in python, so feel free to return it to me if that's the case) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.