1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 18:16:17 +01:00

fix decoding in fetch_cpio

This commit is contained in:
lethliel 2019-12-05 13:02:24 +01:00
parent d0de4c383d
commit 41158412f8

View File

@ -73,8 +73,8 @@ class Fetcher:
# getbinarylist instead of the public/... route
# (which is routed to getbinaries)
# getbinaries does not support kiwi builds
if hdr.filename == '.errors':
archive.copyin_file(hdr.filename)
if hdr.filename == b'.errors':
archive.copyin_file(decode_it(hdr.filename))
raise oscerr.APIError('CPIO archive is incomplete '
'(see .errors file)')
if package == '_repository':