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
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user