mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: fixed ROMFS compression to use zero timestamp
this makes the apj file indepenent of build date, which fixes this issue: https://discuss.ardupilot.org/t/arducopter-waf-build-repeatability/37182
This commit is contained in:
parent
199412adf2
commit
cc4c7d648d
@ -23,8 +23,10 @@ def embed_file(out, f, idx):
|
|||||||
|
|
||||||
# compress it
|
# compress it
|
||||||
compressed = tempfile.NamedTemporaryFile()
|
compressed = tempfile.NamedTemporaryFile()
|
||||||
with gzip.open(compressed.name, mode='wb', compresslevel=9) as g:
|
f = open(compressed.name, "wb")
|
||||||
|
with gzip.GzipFile(fileobj=f, mode='wb', filename='', compresslevel=9, mtime=0) as g:
|
||||||
g.write(contents)
|
g.write(contents)
|
||||||
|
f.close()
|
||||||
|
|
||||||
compressed.seek(0)
|
compressed.seek(0)
|
||||||
b = bytearray(compressed.read())
|
b = bytearray(compressed.read())
|
||||||
|
Loading…
Reference in New Issue
Block a user