overhaul pre- and post-crypto sync
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 24 Mar 2017 13:46:59 +0000 (14:46 +0100)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 24 Mar 2017 13:47:31 +0000 (14:47 +0100)
commitd74439a961c32ed4ac219da241ba9e92c5b0d7f6
tree25b9f6d20fe154151a73ecac828be650cc1888e8
parentdcdce0eac2e91dac4445865e8f84b6f99457eeb2
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