Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] ecompress-file: Support decompressing .lz
Date: Sat, 17 Nov 2018 08:14:33
Message-Id: 20181117081420.4740-1-mgorny@gentoo.org
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 bin/ecompress-file | 3 +++
4 1 file changed, 3 insertions(+)
5
6 diff --git a/bin/ecompress-file b/bin/ecompress-file
7 index bc8fe5451..ccc2701c3 100755
8 --- a/bin/ecompress-file
9 +++ b/bin/ecompress-file
10 @@ -29,6 +29,9 @@ compress_file() {
11 *.lzma|*.xz)
12 unxz -f "${x}" || __helpers_die "unxz failed"
13 x=${x%.*};;
14 + *.lz)
15 + lzip -df "${x}" || __helpers_die "lzip -d failed"
16 + x=${x%.lz};;
17 esac
18
19 filtered_args+=( "$x" )
20 --
21 2.19.1

Replies