Stefan Herbrechtsmeier | 2b8cda6 | 2022-08-19 16:25:35 +0200 | [diff] [blame] | 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 | |
| 7 | gzip allows compression and decompression of files. |
| 8 | |
| 9 | Documentation is available via:: |
| 10 | |
| 11 | man gzip |
| 12 | """ |
| 13 | |
| 14 | from binman import bintool |
| 15 | |
| 16 | # pylint: disable=C0103 |
Quentin Schulz | c33383c | 2022-11-07 13:54:54 +0100 | [diff] [blame] | 17 | class Bintoolgzip(bintool.BintoolPacker): |
Stefan Herbrechtsmeier | 2b8cda6 | 2022-08-19 16:25:35 +0200 | [diff] [blame] | 18 | """Compression/decompression using the gzip algorithm |
| 19 | |
| 20 | This bintool supports running `gzip` to compress and decompress data, as |
| 21 | used by binman. |
| 22 | |
| 23 | It is also possible to fetch the tool, which uses `apt` to install it. |
| 24 | |
| 25 | Documentation is available via:: |
| 26 | |
| 27 | man gzip |
| 28 | """ |
| 29 | def __init__(self, name): |
Quentin Schulz | 2c70188 | 2022-11-07 13:54:56 +0100 | [diff] [blame^] | 30 | super().__init__(name, compress_args=[], |
Stefan Herbrechtsmeier | 2b8cda6 | 2022-08-19 16:25:35 +0200 | [diff] [blame] | 31 | version_regex=r'gzip ([0-9.]+)') |