[gnome-autoar] mime-types: Add back RAR support
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar] mime-types: Add back RAR support
- Date: Fri, 5 Mar 2021 07:34:15 +0000 (UTC)
commit 9356fae1a735b9f8e9daf5633b9709596543ff2e
Author: Matthias <matthias vogelgesang gmail com>
Date: Fri Mar 5 07:34:14 2021 +0000
mime-types: Add back RAR support
The commit 66cf03f9 dropped support for RAR archives because they were not well
supported by libarchive. But a lot of changed since then and libarchive 3.4.0
came with RAR 5 support. Let's add back support for RAR and bump the libarchive
dependency accordingly.
Fixes: https://gitlab.gnome.org/GNOME/gnome-autoar/-/issues/2
configure.ac | 2 +-
gnome-autoar/autoar-mime-types.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index 7d6b825..1a13589 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ VAPIGEN_CHECK([0.22])
# Checks for libraries.
GLIB_REQUIRED=2.35.6
GTK_REQUIRED=3.2
-LIBARCHIVE_REQUIRED=3.2.0
+LIBARCHIVE_REQUIRED=3.4.0
PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= $LIBARCHIVE_REQUIRED],
[GNOME_AUTOAR_LIBARCHIVE_REQUIRES="libarchive"
diff --git a/gnome-autoar/autoar-mime-types.c b/gnome-autoar/autoar-mime-types.c
index e7ffbc4..7fdb6c1 100644
--- a/gnome-autoar/autoar-mime-types.c
+++ b/gnome-autoar/autoar-mime-types.c
@@ -44,6 +44,7 @@ static gchar *supported_mime_types[] = {
"application/zip",
"application/gzip",
"application/bzip2",
+ "application/vnd.rar",
NULL
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]