[epiphany/gnome-3-10] ephy-download: Detect .xz as compressed too



commit 67a01b320140b04fcd1446fdc7f500f3a7fda761
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]