[issue24465] Make tarfile have deterministic sorting

Sam Thursfield report at bugs.python.org
Mon Jun 22 15:19:37 CEST 2015


Sam Thursfield added the comment:

Here's a patch which does the same thing but only for shutil.make_archive().

Note that the final output will still be non-deterministic if you use format=gztar because time.time() and the base_name argument get added to the gzip header. Might be nice to add an option to make that deterministic too, as a separate thing. This patch is useful to me as-is though.

----------
Added file: http://bugs.python.org/file39770/make_archive-stable-ordering.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24465>
_______________________________________


More information about the Python-bugs-list mailing list