[Yum-devel] small bugfix

James Antill james at fedoraproject.org
Mon Jun 14 15:52:56 UTC 2010


On Mon, 2010-06-14 at 16:06 +0300, BebiX kost wrote:
> 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)))

 Can you confirm that:

+ problem.problem, to_unicode(str(problem))))

...also works?



More information about the Yum-devel mailing list