Use deterministic permissions to prevent differences in zip files

parent c7a6346c
Pipeline #2986 passed with stages
in 9 minutes and 21 seconds
......@@ -68,6 +68,8 @@ def reset_time(file_name):
def zip_files(files, zip_name):
for file_name in files:
reset_time(file_name)
# use deterministic permissions to prevent differences in zip files
os.chmod(file_name, 0o755)
sha256hash = get_sha256(file_name)
print("Hash before zipping %s: %s" % (file_name, sha256hash))
ex(['zip', '-D', '-X', zip_name] + files)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment