diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2016-05-02 15:28:47 +0200 |
---|---|---|
committer | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2016-05-02 15:52:52 +0200 |
commit | 9d8b86a4a123893ea365e96835cfa2bfe38d1974 (patch) | |
tree | 9854a2989d382437652644ac0f9c5c21e54b1476 | |
parent | 882ed5bbf61b7f0915a04e200716b260d82bf5e4 (diff) | |
download | appstream-glib-9d8b86a4a123893ea365e96835cfa2bfe38d1974.tar.gz |
Omit timestamp from gzip compressed files
-rw-r--r-- | libappstream-builder/asb-utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index e40af55..f37d09a 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -441,8 +441,10 @@ asb_utils_write_archive (const gchar *filename, struct stat st; a = archive_write_new (); - if (g_str_has_suffix (filename, ".gz")) + if (g_str_has_suffix (filename, ".gz")) { archive_write_add_filter_gzip (a); + archive_write_set_filter_option (a, "gz", "timestamp", NULL); + } if (g_str_has_suffix (filename, ".bz2")) archive_write_add_filter_bzip2 (a); if (g_str_has_suffix (filename, ".xz")) |