[file-roller: 2/4] libarchive: Use correct mime type for LZO compressed TAR archives
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller: 2/4] libarchive: Use correct mime type for LZO compressed TAR archives
- Date: Sat, 12 Oct 2019 16:07:31 +0000 (UTC)
commit 37b3a16946df17a3976d9c560ce05da9823a0e7d
Author: Felix Riemann <friemann gnome org>
Date: Sat Feb 23 16:10:01 2019 +0100
libarchive: Use correct mime type for LZO compressed TAR archives
Use 'application/x-tzo' instead of 'application/x-lzop-compressed-tar'.
Makes these archives work in the libarchive backend.
Fixes #30.
src/fr-archive-libarchive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
index 1d451648..b1048f2d 100644
--- a/src/fr-archive-libarchive.c
+++ b/src/fr-archive-libarchive.c
@@ -83,11 +83,11 @@ const char *libarchiver_mime_types[] = {
"application/x-lrzip-compressed-tar",
"application/x-lzip-compressed-tar",
"application/x-lzma-compressed-tar",
- "application/x-lzop-compressed-tar",
"application/x-rar",
"application/x-rpm",
"application/x-tar",
"application/x-tarz",
+ "application/x-tzo",
"application/x-xar",
"application/x-xz-compressed-tar",
"application/zip",
@@ -1163,7 +1163,7 @@ _archive_write_set_format_from_context (struct archive *a,
archive_write_set_format_pax_restricted (a);
archive_filter = ARCHIVE_FILTER_LZMA;
}
- else if (_g_str_equal (mime_type, "application/x-lzop-compressed-tar")) {
+ else if (_g_str_equal (mime_type, "application/x-tzo")) {
archive_write_set_format_pax_restricted (a);
archive_filter = ARCHIVE_FILTER_LZOP;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]