[issue44262] tarfile: some content different output
Vasco Gervasi
report at bugs.python.org
Mon May 31 03:23:21 EDT 2021
Vasco Gervasi <yellowhat at mailbox.org> added the comment:
Yes, you can close it.
For future reference:
tar_reset = "/tmp/py_tar_reset.tar"
def reset(tarinfo):
tarinfo.uid = tarinfo.gid = 0
tarinfo.uname = tarinfo.gname = "root"
tarinfo.mtime = 1
return tarinfo
with tarfile.open(tar_reset, "w:xz") as tar_obj:
tar_obj.add("/tmp/a", arcname="a", filter=reset)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44262>
_______________________________________
More information about the Python-bugs-list
mailing list