commit: 36fb8446ad50f878e63a855a12341d73277305ab
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 06:37:19 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 20:45:40 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=36fb8446
bin: ecompress: lz4: add .lz4 to internal compression collision check
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 3 +++
bin/ecompress | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 6ca656008..21296d5ff 100644
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,9 @@ Bug fixes:
* bin: ecompress: zstd: Recognize .zst as a compressed file suffix for the
purposes
of the internal compressed file collision check.
+* bin: ecompress: lz4: Recognize .lz4 as a compressed file suffix for the
purposes
+ of the internal compressed file collision check.
+
* bin: ecompress: zstd: Set '-q --rm' in PORTAGE_COMPRESS_FLAGS to behave
like other compressors.
diff --git a/bin/ecompress b/bin/ecompress
index 96a83e4b4..6d47059da 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -71,9 +71,9 @@ while [[ $# -gt 0 ]] ; do
# note: to save time, we need to do this only
if there's
# at least one compressed file
case ${path} in
- *.Z|*.gz|*.bz2|*.lzma|*.xz|*.zst)
+ *.Z|*.gz|*.bz2|*.lzma|.lz4|*.xz|*.zst)
vpath=${path%.*}
- for comp in '' .Z .gz .bz2
.lzma .xz .zst; do
+ for comp in '' .Z .gz .bz2
.lzma .lz4 .xz .zst; do
if [[ ${vpath}${comp}
!= ${path} && \
-e
${vpath}${comp} ]]; then
collisions[${path}]=1