From 6b8d185a6389614ce30b829ac550d8fef13da91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Wed, 29 Jun 2016 01:39:48 +0200 Subject: convert bytes string to utf-8 --- MgaRepo/rpmutil.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MgaRepo') diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 1d6a3cb..f3d1c5f 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -916,6 +916,9 @@ def get_pkg_tag(tag, path=os.path.curdir, subpkg=None): raise Error("Subpkg must be the index number of a package,"\ "or None for source package") - return header[tag] + if isinstance(header[tag],bytes): + return header[tag].decode("utf8") + else: + return header[tag] # vim:et:ts=4:sw=4 -- cgit v1.2.1