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 committed Aug 18, 2022
1 parent e962af9 commit a6eeea9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ 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())
ova_file.write(tar_info.tobuf() if python2 else
tar_info.tobuf(format=tarfile.GNU_FORMAT))
pad_to_block_size(ova_file)
if file_size:
ova_file.write(NUL * file_size)
Expand Down

0 comments on commit a6eeea9

Please sign in to comment.