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

Merge pull request #696 from lethliel/fix_fetch_cpio_decoding

fix decoding in fetch_cpio
This commit is contained in:
Marco Strigl 2019-12-05 13:06:32 +01:00 committed by GitHub
commit 26bb6b4765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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':