]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/rpm2cpio.sh: Use bzip2 instead of bunzip2
authorPavel Zhukov <pavel@zhukoff.net>
Tue, 18 Apr 2023 10:07:11 +0000 (12:07 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Apr 2023 10:56:03 +0000 (11:56 +0100)
bzip2 is in HOSTTOOLS already and used in few other places already.
This fixes bin_package class for RPM packages without adding bunzip2 to
HOSTTOOLS.

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
scripts/rpm2cpio.sh

index 7cd771bbe772d90e4354378e522d98bfad3829bc..2034373fe4bdbc5116e1edb459d5f4c5405eef29 100755 (executable)
@@ -47,7 +47,7 @@ calcsize $(($offset + (8 - ($sigsize % 8)) % 8))
 hdrsize=$rsize
 
 case "$(_dd $offset bs=3 count=1)" in
-       "$(printf '\102\132')"*) _dd $offset | bunzip2 ;; # '\x42\x5a'
+       "$(printf '\102\132')"*) _dd $offset | bzip2 -d ;; # '\x42\x5a'
        "$(printf '\037\213')"*) _dd $offset | gunzip  ;; # '\x1f\x8b'
        "$(printf '\375\067')"*) _dd $offset | xzcat   ;; # '\xfd\x37'
        "$(printf '\135\000')"*) _dd $offset | unlzma  ;; # '\x5d\x00'