Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: /, bin/
Date: Thu, 29 Sep 2022 20:45:47
Message-Id: 1664484339.21c5d50a8e19be846e286ed06136822f89f4c4c2.sam@gentoo
1 commit: 21c5d50a8e19be846e286ed06136822f89f4c4c2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 06:37:19 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 20:45:39 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=21c5d50a
7
8 bin: ecompress: zstd: add .zst to internal compression collision check
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 NEWS | 3 +++
13 bin/ecompress | 4 ++--
14 2 files changed, 5 insertions(+), 2 deletions(-)
15
16 diff --git a/NEWS b/NEWS
17 index 67cb6a795..dced9688a 100644
18 --- a/NEWS
19 +++ b/NEWS
20 @@ -29,6 +29,9 @@ Bug fixes:
21
22 * data: Fix PORTAGE_USERNAME default (bug #873088).
23
24 +* bin: ecompress: zstd: Recognize .zst as a compressed file suffix for the purposes
25 + of the internal compressed file collision check.
26 +
27 portage-3.0.37 (2022-09-23)
28 --------------
29
30
31 diff --git a/bin/ecompress b/bin/ecompress
32 index a77bb7e35..7fb2b9c00 100755
33 --- a/bin/ecompress
34 +++ b/bin/ecompress
35 @@ -71,9 +71,9 @@ while [[ $# -gt 0 ]] ; do
36 # note: to save time, we need to do this only if there's
37 # at least one compressed file
38 case ${path} in
39 - *.Z|*.gz|*.bz2|*.lzma|*.xz)
40 + *.Z|*.gz|*.bz2|*.lzma|*.xz|*.zst)
41 vpath=${path%.*}
42 - for comp in '' .Z .gz .bz2 .lzma .xz; do
43 + for comp in '' .Z .gz .bz2 .lzma .xz .zst; do
44 if [[ ${vpath}${comp} != ${path} && \
45 -e ${vpath}${comp} ]]; then
46 collisions[${path}]=1