rpm2cpio.sh: Improve error message

for unknown payload compression format. At this point it is unlikely
this isn't an RPM file as we detected the headers but much more likely
the package is using a newer compression format.
This commit is contained in:
Florian Festi 2022-07-11 09:51:40 +02:00 committed by Michal Domonkos
parent f3b263610b
commit 85d92cab05
1 changed files with 1 additions and 1 deletions

View File

@ -60,5 +60,5 @@ case "$(_dd $offset bs=2 count=1 | tr -d '\0')" in
"$(printf '\375\067')") _dd $offset | xzcat ;; # '\xfd\x37'
"$(printf '\135')") _dd $offset | unlzma ;; # '\x5d\x00'
"$(printf '\050\265')") _dd $offset | unzstd ;; # '\x28\xb5'
*) fatal "Unrecognized rpm file: $pkg" ;;
*) fatal "Unrecognized payload compression format in rpm file: $pkg" ;;
esac