Open qmonnet opened 1 year ago
Tar output formats xz and txz do not work when passing an explicit compression level:
xz
txz
$ python3 ./git_archive_all.py /tmp/foo.zip -9 [works] $ python3 ./git_archive_all.py /tmp/foo.xz -9 xz cannot be compressed $ python3 ./git_archive_all.py /tmp/foo.txz -9 txz cannot be compressed
From this link, it looks like these formats expect the compression level to be passed by the preset argument in tarfile.open(), instead of compresslevel.
preset
tarfile.open()
compresslevel
Tar output formats
xz
andtxz
do not work when passing an explicit compression level:From this link, it looks like these formats expect the compression level to be passed by the
preset
argument intarfile.open()
, instead ofcompresslevel
.