Skip to content

Commit

Permalink
Merge pull request #696 from lethliel/fix_fetch_cpio_decoding
Browse files Browse the repository at this point in the history
fix decoding in fetch_cpio
  • Loading branch information
lethliel committed Dec 5, 2019
2 parents d0de4c3 + 4115841 commit 26bb6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def __download_cpio_archive(self, apiurl, project, repo, arch, package, **pkgs):
# 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':
Expand Down

0 comments on commit 26bb6b4

Please sign in to comment.