Skip to content

Commit

Permalink
write debian control tarball in GNU_FORMAT. (#217)
Browse files Browse the repository at this point in the history
This addresses part 1 of #216
  • Loading branch information
aiuto authored Aug 7, 2020
1 parent 5985cff commit dbd2c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/make_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def CreateDebControl(extrafiles=None, **kwargs):
# Create the control.tar file
tar = BytesIO()
with gzip.GzipFile('control.tar.gz', mode='w', fileobj=tar, mtime=0) as gz:
with tarfile.open('control.tar.gz', mode='w', fileobj=gz) as f:
with tarfile.open('control.tar.gz', mode='w', fileobj=gz,
format=tarfile.GNU_FORMAT) as f:
tarinfo = tarfile.TarInfo('./control')
control_file_data = controlfile.encode('utf-8')
tarinfo.size = len(control_file_data)
Expand Down

0 comments on commit dbd2c4b

Please sign in to comment.