summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2023-04-18 12:07:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-20 11:56:06 +0100
commitd84eb2a5e484992952f79b5829ae516c823460f1 (patch)
treed3e2f19b56663e254bf0bfd06278f56aaef63101
parent1cca2202bf5cf0ffd1f046d54ba6d407c2a082bf (diff)
downloadpoky-d84eb2a5e484992952f79b5829ae516c823460f1.tar.gz
scripts/rpm2cpio.sh: Use bzip2 instead of bunzip2
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. (From OE-Core rev: eb3ec7469fff857c819332371ad1d586f43c79c3) Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/rpm2cpio.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rpm2cpio.sh b/scripts/rpm2cpio.sh
index 7cd771bbe7..2034373fe4 100755
--- a/scripts/rpm2cpio.sh
+++ b/scripts/rpm2cpio.sh
@@ -47,7 +47,7 @@ calcsize $(($offset + (8 - ($sigsize % 8)) % 8))
47hdrsize=$rsize 47hdrsize=$rsize
48 48
49case "$(_dd $offset bs=3 count=1)" in 49case "$(_dd $offset bs=3 count=1)" in
50 "$(printf '\102\132')"*) _dd $offset | bunzip2 ;; # '\x42\x5a' 50 "$(printf '\102\132')"*) _dd $offset | bzip2 -d ;; # '\x42\x5a'
51 "$(printf '\037\213')"*) _dd $offset | gunzip ;; # '\x1f\x8b' 51 "$(printf '\037\213')"*) _dd $offset | gunzip ;; # '\x1f\x8b'
52 "$(printf '\375\067')"*) _dd $offset | xzcat ;; # '\xfd\x37' 52 "$(printf '\375\067')"*) _dd $offset | xzcat ;; # '\xfd\x37'
53 "$(printf '\135\000')"*) _dd $offset | unlzma ;; # '\x5d\x00' 53 "$(printf '\135\000')"*) _dd $offset | unlzma ;; # '\x5d\x00'