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

Incorrect warnings for decompression of tar extensions like tgz, txz, e.t.c #220

Closed
figsoda opened this issue Dec 8, 2021 · 1 comment · Fixed by #270
Closed

Incorrect warnings for decompression of tar extensions like tgz, txz, e.t.c #220

figsoda opened this issue Dec 8, 2021 · 1 comment · Fixed by #270
Labels
bug Something isn't working
Milestone

Comments

@figsoda
Copy link
Member

figsoda commented Dec 8, 2021

Version

master (bafc2d3)

Description

the special tar extensions are not recognized when decompressing and extra warnings are generated

Current Behavior

$ ouch c src src.tgz && ouch d src.tgz
[INFO] Compressing 'src'. [00:00:00]   4.00KiB/ (39.15KiB/s, 0s)
[INFO] Successfully compressed 'src.tgz'.
Warning: The file extension: `tgz` differ from the detected extension: `gz`
Do you want to continue decompressing '/home/figsoda/ouch/src.tgz'? [Y/n]

Expected Behavior

no warnings

Additional Information

No response

@figsoda figsoda added the bug Something isn't working label Dec 8, 2021
@marcospb19
Copy link
Member

marcospb19 commented Dec 9, 2021

Format handling turned into a mess cause we added a lot of features and did bugfixes without proper refactoring and testing every case.

I'll be trying to improve that part of the code and fix this.

(Thanks for reporting this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants