[Yum-devel] small bugfix

BebiX kost k.bx at ya.ru
Mon Jun 14 13:06:36 UTC 2010


Hi! There's a small bug at yum right now (fedora rawhide) for non-ascii users and here's how to fix it:
at /usr/lib/python2.6/site-packages/yum/history.py at line 417 replace str to unicode.

Something like this:

def _trans_rpmdb_problem(self, problem):
if not hasattr(self, '_tid'):
return # Not configured to run
cur = self._get_cursor()
if cur is None or not self._update_db_file_2():
return None
res = executeSQL(cur,
"""INSERT INTO trans_rpmdb_problems
(tid, problem, msg)
VALUES (?, ?, ?)""", (self._tid,
- problem.problem, str(problem)))
+ problem.problem, unicode(problem)))
rpid = cur.lastrowid

As until that yum was broken and unable to do any update (because problems that were printed out and stored to db had a non-ascii symbols).


More information about the Yum-devel mailing list