Skip to content

Commit

Permalink
rpm2cpio.sh: identify zstd compressed payloads
Browse files Browse the repository at this point in the history
Fedora recently switched to zstd payloads, and rpm2cpio.sh didn't know
how to identify them, so it would spit out ".cpio.unk" archives instead
of ".cpio.zst". This commit fixes that.
  • Loading branch information
wgwoods committed Dec 2, 2019
1 parent 07e11d7 commit d1b8699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpm2cpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ magic2ext() {
fd377a58) echo xz ;; # 0xfd "7zX"
4c5a4950) echo lz ;; # "LZIP"
4c5a5249) echo lrz ;; # "LRZI"
2?b52ffd) echo zst ;; # 0xFD2FB52?, but little-endian
30373037) echo cpio ;; # "0707"
75737461) echo tar ;; # "usta"
*) echo unk ;;
Expand Down

0 comments on commit d1b8699

Please sign in to comment.