Commit 71494dcb authored by Domenico Panella's avatar Domenico Panella Committed by Elvis Angelaccio
Browse files

Adding "application/zstd" mimetype

parent 4073972d
......@@ -238,6 +238,14 @@ void LoadTest::testProperties_data()
<< false << false << false << false << false << 0 << Archive::Unencrypted
<< QStringLiteral("simplearchive")
<< QString();
/* mimetype "application/zstd" */
QTest::newRow("zstd tarball")
<< QFINDTESTDATA("data/simplearchive.tar.zstd")
<< QStringLiteral("simplearchive")
<< false << false << false << false << false << 0 << Archive::Unencrypted
<< QStringLiteral("simplearchive")
<< QString();
} else {
qDebug() << "zstd executable not found in path. Skipping zstd test.";
}
......
......@@ -5,7 +5,7 @@ set(SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES "application/x-tar;application/x-co
set(SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES "${SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES}application/x-lzma-compressed-tar;application/x-lzip-compressed-tar;application/x-tzo;application/x-lrzip-compressed-tar;application/x-lz4-compressed-tar;")
set(SUPPORTED_LIBARCHIVE_READONLY_MIMETYPES "application/vnd.debian.binary-package;application/x-deb;application/x-cd-image;application/x-bcpio;application/x-cpio;application/x-cpio-compressed;application/x-sv4cpio;application/x-sv4crc;")
set(SUPPORTED_LIBARCHIVE_READONLY_MIMETYPES "${SUPPORTED_LIBARCHIVE_READONLY_MIMETYPES}application/x-rpm;application/x-source-rpm;application/vnd.ms-cab-compressed;application/x-xar;application/x-iso9660-appimage;application/x-archive;")
set(SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES "${SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES}application/x-zstd-compressed-tar;")
set(SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES "${SUPPORTED_LIBARCHIVE_READWRITE_MIMETYPES}application/zstd;application/x-zstd-compressed-tar;")
set(INSTALLED_LIBARCHIVE_PLUGINS "")
......@@ -49,6 +49,7 @@ set(SUPPORTED_READWRITE_MIMETYPES
\"application/x-tzo\",
\"application/x-lrzip-compressed-tar\",
\"application/x-lz4-compressed-tar\",
\"application/zstd\",
\"application/x-zstd-compressed-tar")
configure_file(
......
......@@ -128,6 +128,11 @@
"CompressionLevelMax": 9,
"CompressionLevelMin": 0
},
"application/zstd": {
"CompressionLevelDefault": 3,
"CompressionLevelMax": 22,
"CompressionLevelMin": 1
},
"application/x-zstd-compressed-tar": {
"CompressionLevelDefault": 3,
"CompressionLevelMax": 22,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment