overhaul pre- and post-crypto sync
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 24 Mar 2017 13:46:59 +0000 (14:46 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit5f38bff6f0921b717f52fb91d64242d1fdfa5489
treec3be5fa0b55f91e9da17f0048f9dd6bdd32a2be9
parent6178061e1b062972612bbc231e20db8a73a5673b
overhaul pre- and post-crypto sync

In order to handle ``_Stream.close()`` well later, we need to
write the header of the last object before the tar info is
injected. To allow the padding and zlib finalization in .close(),
this cannot be performed when the actual file contents are
written but has to be suspended until we are certain no data will
be written to the current crypto object.
deltatar/crypto.py
deltatar/tarfile.py