Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing compression level with xz or txz output formats does not work #91

Open
qmonnet opened this issue May 24, 2023 · 0 comments
Open

Comments

@qmonnet
Copy link

qmonnet commented May 24, 2023

Tar output formats xz and txz do not work when passing an explicit compression level:

$ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant