Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] ecompress-file: Support decompressing .lz
Date: Sun, 18 Nov 2018 03:26:42
Message-Id: aa401a78-618c-9d3d-595f-7997001edfc1@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] ecompress-file: Support decompressing .lz by "Michał Górny"
1 On 11/17/18 12:14 AM, Michał Górny wrote:
2 > Signed-off-by: Michał Górny <mgorny@g.o>
3 > ---
4 > bin/ecompress-file | 3 +++
5 > 1 file changed, 3 insertions(+)
6 >
7 > diff --git a/bin/ecompress-file b/bin/ecompress-file
8 > index bc8fe5451..ccc2701c3 100755
9 > --- a/bin/ecompress-file
10 > +++ b/bin/ecompress-file
11 > @@ -29,6 +29,9 @@ compress_file() {
12 > *.lzma|*.xz)
13 > unxz -f "${x}" || __helpers_die "unxz failed"
14 > x=${x%.*};;
15 > + *.lz)
16 > + lzip -df "${x}" || __helpers_die "lzip -d failed"
17 > + x=${x%.lz};;
18 > esac
19 >
20 > filtered_args+=( "$x" )
21 >
22
23 Looks good, please merge.
24 --
25 Thanks,
26 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature