properly handle encryption and compression of empty archives
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 2 May 2017 15:59:19 +0000 (17:59 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commitfd2f01f28ca9c7938bbc4f425c40c3c9dc2e1c76
treea0e6a6b9a5def97ded5d18483e2f1a11f279eb69
parent4534bb6cd897aac8fce68908bafe20ef317e65b8
properly handle encryption and compression of empty archives

The old implementation always initialized in the ctor regardless
of whether contents would be written to the archive. For empty
archives this now has to be done in ``.close()`` if no data has
been added yet.
deltatar/tarfile.py