Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 3/5] unpacker.eclass: Support all makeself "compression" methods
Date: Wed, 28 Sep 2022 21:00:14
Message-Id: 20220928205907.15979-4-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/5] unpacker.eclass: makeself improvements + tests by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/unpacker.eclass | 12 ++++++++++++
4 1 file changed, 12 insertions(+)
5
6 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
7 index 660cafce5105..dfcb111e00f5 100644
8 --- a/eclass/unpacker.eclass
9 +++ b/eclass/unpacker.eclass
10 @@ -262,6 +262,18 @@ unpack_makeself() {
11 XZ*)
12 suffix=xz
13 ;;
14 + Zstandard*)
15 + suffix=zst
16 + ;;
17 + lzop*)
18 + suffix=lzo
19 + ;;
20 + LZ4*)
21 + suffix=lz4
22 + ;;
23 + "ASCII text"*)
24 + decomp='base64 -d'
25 + ;;
26 *)
27 die "Unknown filetype \"${filetype}\", for makeself ${src##*/} ('${ver}' +${skip})"
28 ;;
29 --
30 2.37.3