blob: c3897d63acb53db56d571452e8c588dd47192350 [file] [log] [blame]
Stefan Herbrechtsmeier45aa2792022-08-19 16:25:34 +02001# 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 bzip2
6
7bzip2 allows compression and decompression of files.
8
9Documentation is available via::
10
11 man bzip2
12"""
13
14from binman import bintool
15
16# pylint: disable=C0103
17class Bintoolbzip2(bintool.BintoolPacker):
18 """Compression/decompression using the bzip2 algorithm
19
20 This bintool supports running `bzip2` 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 bzip2
28 """
29 def __init__(self, name):
Quentin Schulz7ac68422022-09-01 17:51:43 +020030 super().__init__(name, version_regex=r'bzip2.*Version ([0-9.]+)', version_args='--help')