[epiphany/gnome-3-8] ephy-download: Detect .xz as compressed too
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-8] ephy-download: Detect .xz as compressed too
- Date: Mon, 11 Nov 2013 12:38:22 +0000 (UTC)
commit fb45259ac0e1d53ed6ba7a2a831972d7f1d0c310
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 df27b6e..3462795 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -241,7 +241,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]