Pass on 'compresslevel' for gzip / bzip2 compressed archives only
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 14:35:57 +0000 (16:35 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 14:38:46 +0000 (16:38 +0200)
commite05f0440344e0cc6946f65c139a1e447d38774ae
treef11dbbeeea012cce42829d922d30c03d1dd1596e
parentb0aef801e348af8206f779e6031b9ed367484e7e
Pass on 'compresslevel' for gzip / bzip2 compressed archives only

Otherwise we crash when opening plain tar files for writing:

    TypeError: taropen() takes from 2 to 4 positional arguments but 5 were given

First part of the unit test fix. Verified with debug statements
in gzopen() that passing on the parameter still works.
deltatar/tarfile.py