Commit 80de68b2 authored by James Antill's avatar James Antill

Use to_str instead of just str() so we don't try and go from unicode to str

parent 3ae4b44c
......@@ -26,6 +26,7 @@
# yum --filter-groups='App*/Sys*' list updates
from yum.plugins import TYPE_INTERACTIVE
from yum.misc import to_unicode, to_utf8, to_str
import fnmatch
......@@ -45,12 +46,12 @@ def fd__get_data(pkg, attr, strip=True):
if type(val) == type([]):
return fd__unknown
tval = str(val).strip()
tval = to_str(val).strip()
if tval == "":
return fd__unknown
if strip:
return tval
return to_utf8(tval)
return val
......
......@@ -222,7 +222,7 @@ installed-sizes.
%package -n yum-filter-data
Summary: Yum plugin to list filter based on package data
Group: System Environment/Base
Requires: yum >= 3.0.5
Requires: yum >= 3.2.17
%description -n yum-filter-data
This plugin adds the options --filter- vendors, groups, packagers, licenses,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment