]> git.pld-linux.org Git - packages/exim.git/blob - zstd.patch
- rel 11; update from upstream + zstd support in exigrep
[packages/exim.git] / zstd.patch
1 commit 4f252517dc0e8eda6c1eb1031ac0bcd29b6a7a93
2 Author: Arkadiusz Miƛkiewicz <arekm@maven.pl>
3 Date:   Thu Jan 23 08:51:01 2020 +0100
4
5     Add support for zstd compressed .zst files (Bug 2515)
6
7 diff --git a/src/src/exigrep.src b/src/src/exigrep.src
8 index afd3538b6..835766fb4 100644
9 --- a/src/src/exigrep.src
10 +++ b/src/src/exigrep.src
11 @@ -159,7 +159,8 @@ my $compressors = {
12    gz   => { cmd => 'zcat',  args => '' },
13    bz2  => { cmd => 'bzcat', args => '' },
14    xz   => { cmd => 'xzcat', args => '' },
15 -  lzma => { cmd => 'lzma',  args => '-dc' }
16 +  lzma => { cmd => 'lzma',  args => '-dc' },
17 +  zst  => { cmd => 'zstdcat', args => '' },
18  };
19  my $csearch = 0;
20  
21 @@ -313,8 +314,8 @@ given host, for example.
22  
23  If no file names are given on the command line, the standard input is read.
24  
25 -For known file extensions indicating compression (F<.gz>, F<.bz2>, F<.xz>, and F<.lzma>)
26 -a suitable de-compressor is used, if available.
27 +For known file extensions indicating compression (F<.gz>, F<.bz2>, F<.xz>,
28 +F<.lzma>, and F<.zst>) a suitable de-compressor is used, if available.
29  
30  The output is sent through a pager if a terminal is connected to STDOUT. As
31  pager are considered: C<$ENV{PAGER}>, C<less>, C<more>.
This page took 0.073315 seconds and 3 git commands to generate.