File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010import sys
1111import time
1212import glob
13+ import subprocess
1314
1415xpiName = sys .argv [1 ]
1516exclusionsFile = sys .argv [2 ]
@@ -30,6 +31,7 @@ def createTmpZipInfo():
3031 generated to create a deterministic zip
3132 """
3233 xpiFileTmp = zipfile .ZipFile (tmpfile , mode = 'w' , compression = compress )
34+ print subprocess .call (['sha1sum' , tmpfile ])
3335 xpiFileTmp .write (testfile , compress_type = compress )
3436 xpiFileTmp .close ()
3537 xpiFileTmp .infolist ().sort (key = lambda x : x .filename )
@@ -48,8 +50,9 @@ def constructZipDet():
4850 info .create_system = 3 # aka, UNIX
4951 info .create_version = 20
5052 info .extract_version = 20
51- xpiFile .writestr (info , open ( info . filename ). read () )
53+ xpiFile .writestr (info , '' )
5254
5355constructZipDet ()
5456xpiFile .close ()
5557os .remove (tmpfile )
58+ print subprocess .call (['sha1sum' , xpiName ])
You can’t perform that action at this time.
0 commit comments