cli tar: support different algorithms for zip & 7z

Fixes: #27443
This commit is contained in:
AJIOB
2025-12-06 20:00:33 +03:00
committed by Brad King
parent 1ba3444fd8
commit 94ae247d44
59 changed files with 496 additions and 124 deletions

View File

@@ -934,6 +934,12 @@ Archiving
``7zip``, ``gnutar``, ``pax``, ``paxr``, ``raw`` and ``zip``.
If ``FORMAT`` is not given, the default format is ``paxr``.
The default compression method depends on the format:
* ``7zip`` uses ``LZMA`` compression
* ``zip`` uses ``Deflate`` compression
* others uses no compression by default
``COMPRESSION <compression>``
Some archive formats allow the type of compression to be specified.
The ``7zip`` and ``zip`` archive formats already imply a specific type of
@@ -943,6 +949,12 @@ Archiving
* ``None``
* ``BZip2``
* ``Deflate``
.. versionadded:: 4.3
This is an alias for ``GZip``.
* ``GZip``
* ``LZMA``