[Yum-devel] [PATCH 1/2] Convert rpm/yumdb values to unicode, or python/sqlite will die. BZ 730365.
tim.lauridsen at gmail.com
tim.lauridsen at gmail.com
Sat Aug 20 14:54:40 UTC 2011
On Fri, Aug 19, 2011 at 8:01 PM, James Antill <james at and.org> wrote:
> ---
> yum/history.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/yum/history.py b/yum/history.py
> index c91c33a..6449708 100644
> --- a/yum/history.py
> +++ b/yum/history.py
> @@ -1295,7 +1295,7 @@ class YumHistory:
>
> sql = """INSERT INTO pkg_%(db)sdb (pkgtupid, %(db)sdb_key, %(db)sdb_val)
> VALUES (?, ?, ?)""" % {'db' : db}
> - executeSQL(cur, sql, (pid, attr, val))
> + executeSQL(cur, sql, (pid, attr, to_unicode(val)))
> for row in cur:
> return row[0]
>
> --
> 1.7.6
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
ACK
More information about the Yum-devel
mailing list