From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D7ED615807A for ; Sat, 07 Jun 2025 22:55:13 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C362C3430D5 for ; Sat, 07 Jun 2025 22:55:13 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id EEC181102BE; Sat, 07 Jun 2025 22:54:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E77DA1102BE for ; Sat, 07 Jun 2025 22:54:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A32E6342FAF for ; Sat, 07 Jun 2025 22:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A748F297D for ; Sat, 07 Jun 2025 22:54:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749336854.6476763b94da150fc27a60a2e0510b8cb5089bdc.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ecompress X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6476763b94da150fc27a60a2e0510b8cb5089bdc X-VCS-Branch: master Date: Sat, 07 Jun 2025 22:54:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5fad488b-5c4d-42dc-af2a-4f908226ac03 X-Archives-Hash: cd9e5cf4d98d2df35bea2942bc6b192a commit: 6476763b94da150fc27a60a2e0510b8cb5089bdc Author: Kerin Millar plushkava net> AuthorDate: Sat Jun 7 12:31:05 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jun 7 22:54:14 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6476763b ecompress: reformat a case statement, along with a comment Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/ecompress | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/bin/ecompress b/bin/ecompress index 0cb18c73ac..ded4b4b824 100755 --- a/bin/ecompress +++ b/bin/ecompress @@ -208,13 +208,20 @@ fi if [[ ! -v PORTAGE_COMPRESS_FLAGS ]] ; then case ${PORTAGE_COMPRESS} in - bzip2|gzip) PORTAGE_COMPRESS_FLAGS="-9";; - # Without setting '-m' lz4 will not compress multiple files at once. - # See: https://bugs.gentoo.org/672916 - # Setting '--rm' will remove the source files after a successful compression. - lz4) PORTAGE_COMPRESS_FLAGS="-m --rm";; - xz) PORTAGE_COMPRESS_FLAGS="-q -T$(___makeopts_jobs) --memlimit-compress=50%";; - zstd) PORTAGE_COMPRESS_FLAGS="-q --rm -T$(___makeopts_jobs)";; + bzip2|gzip) + PORTAGE_COMPRESS_FLAGS="-9" + ;; + lz4) + # Without the -m option, lz4 will not compress multiple + # files at once, per bug 672916. Passing --rm removes + # the source files upon successfuly compressing. + PORTAGE_COMPRESS_FLAGS="-m --rm" + ;; + xz) + PORTAGE_COMPRESS_FLAGS="-q -T$(___makeopts_jobs) --memlimit-compress=50%" + ;; + zstd) + PORTAGE_COMPRESS_FLAGS="-q --rm -T$(___makeopts_jobs)";; esac fi