btool_gzip.py 828 B

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (C) 2022 Weidmüller Interface GmbH & Co. KG
  3. # Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
  4. #
  5. """Bintool implementation for gzip
  6. gzip allows compression and decompression of files.
  7. Documentation is available via::
  8. man gzip
  9. """
  10. from binman import bintool
  11. # pylint: disable=C0103
  12. class Bintoolgzip(bintool.BintoolPacker):
  13. """Compression/decompression using the gzip algorithm
  14. This bintool supports running `gzip` to compress and decompress data, as
  15. used by binman.
  16. It is also possible to fetch the tool, which uses `apt` to install it.
  17. Documentation is available via::
  18. man gzip
  19. """
  20. def __init__(self, name):
  21. super().__init__(name, compress_args=[],
  22. version_regex=r'gzip ([0-9.]+)')