[epiphany] ephy-download: Detect .xz as compressed too
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-download: Detect .xz as compressed too
- Date: Mon, 11 Nov 2013 12:39:48 +0000 (UTC)
commit 28c2f9d8e147968cbf864e0d2e46ae95ed4e3e36
Author: Bastien Nocera <hadess hadess net>
Date: Sat Nov 9 23:48:31 2013 +0100
ephy-download: Detect .xz as compressed too
A fix to a hack to avoid filenames like "filename.tar(1).xz"
https://bugzilla.gnome.org/show_bug.cgi?id=711750
embed/ephy-download.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 4f00c6e..3c162c3 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -228,7 +228,7 @@ static const char*
file_is_compressed (const char *filename)
{
int i;
- static const char * const compression[] = {".gz", ".bz2", ".Z", ".lz", NULL};
+ static const char * const compression[] = {".gz", ".bz2", ".Z", ".lz", ".xz", NULL};
for (i = 0; compression[i] != NULL; i++) {
if (g_str_has_suffix (filename, compression[i]))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]