File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
13import os
24import zipfile
35import sys
46import time
57import glob
8+ import zlib
69
710xpiName = sys .argv [1 ]
811exclusionsFile = sys .argv [2 ]
@@ -25,14 +28,14 @@ def createTmpZipInfo():
2528 for fi in files :
2629 filename = os .path .join (root ,fi )
2730 if filename not in map (lambda x : './' + x , exclusions ):
28- xpiFileTmp .write (filename )
31+ xpiFileTmp .write (filename , compress_type = zipfile . ZIP_DEFLATED )
2932 xpiFileTmp .close ()
3033 return xpiFileTmp .infolist ()
3134
3235def constructZipDet ():
3336 """
3437 Create a deterministic zip by setting timestamps and
35- system/version info to hard-coded values
38+ system/version info to hard-coded values.
3639 """
3740 tmpInfo = createTmpZipInfo ()
3841 for info in tmpInfo :
You can’t perform that action at this time.
0 commit comments