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:
Kovid Goyal 2022-03-15 10:30:15 +05:30
parent 2780630a18
commit 52da68876d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,7 +86,7 @@ def make_tarfile(ssh_opts: SSHOptions, base_env: Dict[str, str], compression: st
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')