diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-05-29 21:41:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-05-29 21:44:32 +0900 |
commit | c91feb08ba19e044205fe56c65a05d1959376873 (patch) | |
tree | d3ec8deab0a90761bdd3969a0b166aac585682bb /ark/archiveformatinfo.cpp | |
parent | 04a8b70fbaebca4f760535d33563a3e2137d9c5d (diff) | |
download | tdeutils-c91feb08ba19e044205fe56c65a05d1959376873.tar.gz tdeutils-c91feb08ba19e044205fe56c65a05d1959376873.zip |
Ark: removed duplicated zip-compressed format and minor code
rearrangement. This relates to bug 2794.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ark/archiveformatinfo.cpp')
-rw-r--r-- | ark/archiveformatinfo.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ark/archiveformatinfo.cpp b/ark/archiveformatinfo.cpp index e3e6ac2..93cf928 100644 --- a/ark/archiveformatinfo.cpp +++ b/ark/archiveformatinfo.cpp @@ -48,27 +48,24 @@ ArchiveFormatInfo * ArchiveFormatInfo::self() void ArchiveFormatInfo::buildFormatInfos() { + addFormatInfo( TAR_FORMAT, "application/x-txz", ".tar.xz" ); addFormatInfo( TAR_FORMAT, "application/x-tgz", ".tar.gz" ); addFormatInfo( TAR_FORMAT, "application/x-tzo", ".tar.lzo" ); addFormatInfo( TAR_FORMAT, "application/x-tarz", ".tar.z" ); addFormatInfo( TAR_FORMAT, "application/x-tbz", ".tar.bz2" ); addFormatInfo( TAR_FORMAT, "application/x-tlz", ".tar.lzma" ); - addFormatInfo( TAR_FORMAT, "application/x-txz", ".tar.xz" ); - - // x-tar as the last one to get its comment for all the others, too addFormatInfo( TAR_FORMAT, "application/x-tar", ".tar" ); addFormatInfo( LHA_FORMAT, "application/x-lha", ".lha" ); - addFormatInfo( ZIP_FORMAT, "application/x-jar", ".jar" ); addFormatInfo( ZIP_FORMAT, "application/x-zip", ".zip" ); - addFormatInfo( ZIP_FORMAT, "application/x-zip-compressed", ".zip" ); + addFormatInfo( ZIP_FORMAT, "application/x-jar", ".jar" ); + addFormatInfo( COMPRESSED_FORMAT, "application/x-xz", ".xz" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-gzip", ".gz" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-bzip", ".bz" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-bzip2", ".bz2" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-lzma", ".lzma" ); - addFormatInfo( COMPRESSED_FORMAT, "application/x-xz", ".xz" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-lzop", ".lzo" ); addFormatInfo( COMPRESSED_FORMAT, "application/x-compress", ".Z" ); find( COMPRESSED_FORMAT ).description = i18n( "Compressed File" ); |