[Yum-devel] [PATCH] Deal with putting non-en rpmdb problems in the history DB

seth vidal skvidal at fedoraproject.org
Mon Jun 14 15:53:03 UTC 2010


On Mon, 2010-06-14 at 11:50 -0400, James Antill wrote:
> ---
>  yum/history.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/yum/history.py b/yum/history.py
> index bfb0b45..a676773 100644
> --- a/yum/history.py
> +++ b/yum/history.py
> @@ -414,7 +414,8 @@ class YumHistory:
>                           """INSERT INTO trans_rpmdb_problems
>                           (tid, problem, msg)
>                           VALUES (?, ?, ?)""", (self._tid,
> -                                               problem.problem, str(problem)))
> +                                               problem.problem,
> +                                               to_unicode(str(problem))))
>          rpid = cur.lastrowid
>  
>          if not rpid:

ack
-sv




More information about the Yum-devel mailing list