ouch icon indicating copy to clipboard operation
ouch copied to clipboard

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

Open figsoda opened this issue 4 years ago • 1 comments

Version

master (bafc2d31b4dacf738ed6a82aa315df6ca2247fbb)

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 avatar Dec 08 '21 02:12 figsoda

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)

marcospb19 avatar Dec 09 '21 04:12 marcospb19