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

Use automatic compression based on file path for tar #440

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 24, 2024

This way users can pass .tar.xz to get XZ compression too. One side effect is that by default we won't compress anymore since the file extension is .tar. On the other hand, it's less confusing for users that you have a .tar extension which should be .tar.gz.

This was noted in https://bugzilla.redhat.com/show_bug.cgi?id=1874045#c5. Right now this is a draft because I think we first need to have a discussion on whether this is correct. Note certs::tar_extract already has -a so it should pick it up already.

This way users can pass .tar.xz to get XZ compression too. One side
effect is that by default we won't compress anymore since the file
extension is .tar. On the other hand, it's less confusing for users that
you have a .tar extension which should be .tar.gz.
@ekohl ekohl force-pushed the use-auto-compression branch from bb61184 to bf636a5 Compare January 24, 2024 11:35
@ekohl ekohl marked this pull request as ready for review February 13, 2024 11:18
@ekohl ekohl merged commit 1a3e425 into theforeman:master Feb 13, 2024
7 checks passed
@ekohl ekohl deleted the use-auto-compression branch February 13, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants