diff options
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/rpmutil.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |