aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-12-06 17:45:47 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-12-06 17:46:27 +0100
commit200642eaa473e7f4a85f2cf2de2b53e30c44d39b (patch)
tree917014476f91fa87da5a125d7e937ea9feb01912
parent541b3c83b2da3be57ebcf562a9a84c059de586fa (diff)
downloadexternal_mat2-history/06-december-2021.tar.gz
external_mat2-history/06-december-2021.tar.bz2
external_mat2-history/06-december-2021.zip
[HACK] default the zip compression level to zipfile.ZIP_STOREDhistory/06-december-2021
This enables to generate reproducible bootanimation.zip files that are also accepted by the bootanimation program. If ZIP_DEFLATED is used instead, the bootanimation program doesn't display the image. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--libmat2/archive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py
index 48c1594..3b92937 100644
--- a/libmat2/archive.py
+++ b/libmat2/archive.py
@@ -368,7 +368,7 @@ class ZipParser(ArchiveBasedAbstractParser):
super().__init__(filename)
self.archive_class = zipfile.ZipFile
self.member_class = zipfile.ZipInfo
- self.zip_compression_type = zipfile.ZIP_DEFLATED
+ self.zip_compression_type = zipfile.ZIP_STORED
def is_archive_valid(self):
try: