return rpm headers as string instead of bytes
This commit is contained in:
parent
f8f373e2b6
commit
cab2c7b4ea
1 changed files with 2 additions and 0 deletions
|
|
@ -915,6 +915,8 @@ def get_header_field(hdr, name, src_arch=False):
|
|||
result = []
|
||||
elif isinstance(result, six.integer_types):
|
||||
result = [result]
|
||||
if isinstance(result, bytes):
|
||||
result = result.decode('utf-8')
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue