Use a zero mtime for data.sh
Its a temp file and that way no chance of the time being in the future
This commit is contained in:
parent
2780630a18
commit
52da68876d
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ def normalize_tarinfo(tarinfo: tarfile.TarInfo) -> tarfile.TarInfo:
|
|||
|
||||
def add_data_as_file(tf: tarfile.TarFile, arcname: str, data: Union[str, bytes]) -> tarfile.TarInfo:
|
||||
ans = tarfile.TarInfo(arcname)
|
||||
ans.mtime = int(time.time())
|
||||
ans.mtime = 0
|
||||
ans.type = tarfile.REGTYPE
|
||||
if isinstance(data, str):
|
||||
data = data.encode('utf-8')
|
||||
|
|
|
|||
Loading…
Reference in a new issue