diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2023-04-18 12:07:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-20 11:56:06 +0100 |
commit | d84eb2a5e484992952f79b5829ae516c823460f1 (patch) | |
tree | d3e2f19b56663e254bf0bfd06278f56aaef63101 | |
parent | 1cca2202bf5cf0ffd1f046d54ba6d407c2a082bf (diff) | |
download | poky-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-x | scripts/rpm2cpio.sh | 2 |
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)) | |||
47 | hdrsize=$rsize | 47 | hdrsize=$rsize |
48 | 48 | ||
49 | case "$(_dd $offset bs=3 count=1)" in | 49 | case "$(_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' |