Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
71494dcb
Commit
71494dcb
authored
Apr 22, 2021
by
Domenico Panella
Committed by
Elvis Angelaccio
May 30, 2021
Browse files
Adding "application/zstd" mimetype
parent
4073972d
Changes
4
Hide whitespace changes
Inline
Side-by-side
autotests/kerfuffle/data/simplearchive.tar.zstd
0 → 100644
View file @
71494dcb
File added
autotests/kerfuffle/loadtest.cpp
View file @
71494dcb
...
...
@@ -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."
;
}
...
...
plugins/libarchive/CMakeLists.txt
View file @
71494dcb
...
...
@@ -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
(
...
...
plugins/libarchive/kerfuffle_libarchive.json.cmake
View file @
71494dcb
...
...
@@ -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,
...
...
Ghost User
@ghost
mentioned in merge request
!53 (closed)
·
Jun 23, 2021
mentioned in merge request
!53 (closed)
mentioned in merge request !53
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment