mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Steve Sakoman
parent
d21b4675d6
commit
28fa51bcf0
+1
-1
@@ -47,7 +47,7 @@ calcsize $(($offset + (8 - ($sigsize % 8)) % 8))
|
|||||||
hdrsize=$rsize
|
hdrsize=$rsize
|
||||||
|
|
||||||
case "$(_dd $offset bs=3 count=1)" in
|
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 '\037\213')"*) _dd $offset | gunzip ;; # '\x1f\x8b'
|
||||||
"$(printf '\375\067')"*) _dd $offset | xzcat ;; # '\xfd\x37'
|
"$(printf '\375\067')"*) _dd $offset | xzcat ;; # '\xfd\x37'
|
||||||
"$(printf '\135\000')"*) _dd $offset | unlzma ;; # '\x5d\x00'
|
"$(printf '\135\000')"*) _dd $offset | unlzma ;; # '\x5d\x00'
|
||||||
|
|||||||
Reference in New Issue
Block a user