Skip to content

Commit

Permalink
pack_ova: Use tarfile.GNU_FORMAT
Browse files Browse the repository at this point in the history
We missed one place in #374.

Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
  • Loading branch information
tinez authored and mwperina committed Aug 19, 2022
1 parent e962af9 commit 7054ce2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def write_padding_file(ova_file, padding_size):
# file_size - the size of the padding file
# (minus one block for the header).
tar_info = create_tar_info("pad", file_size)
ova_file.write(tar_info.tobuf())
buf = (tar_info.tobuf() if python2 else
tar_info.tobuf(format=tarfile.GNU_FORMAT))
ova_file.write(buf)
pad_to_block_size(ova_file)
if file_size:
ova_file.write(NUL * file_size)
Expand Down

0 comments on commit 7054ce2

Please sign in to comment.