diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2023-04-18 12:07:11 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-08-19 05:56:59 -1000 |
commit | 28fa51bcf0ec6888d6f9d133057baee847ae899e (patch) | |
tree | bdcada630cc036ee1dc697f669494dad6af6435d /scripts | |
parent | d21b4675d6beab1bad308d0d1ebbd086bd2697bd (diff) | |
download | poky-28fa51bcf0ec6888d6f9d133057baee847ae899e.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: ed4e4290a73b3fa0df9530a511f992e236e8ae9f)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit eb3ec7469fff857c819332371ad1d586f43c79c3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
-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' |