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 07AB41580EB for ; Fri, 30 May 2025 07:36:46 +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 E8DC2343059 for ; Fri, 30 May 2025 07:36:45 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 941B511049F; Fri, 30 May 2025 07:36:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8DF7211049F for ; Fri, 30 May 2025 07:36:37 +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 48D8B343010 for ; Fri, 30 May 2025 07:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0F8D28EE for ; Fri, 30 May 2025 07:36:35 +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: <1748590555.6527b22f28c5cf5618b04e836bf943efd58e83d9.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/save-ebuild-env.sh X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6527b22f28c5cf5618b04e836bf943efd58e83d9 X-VCS-Branch: master Date: Fri, 30 May 2025 07:36:35 +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: 47306445-1a35-4c2f-a378-297f1a800e40 X-Archives-Hash: b4b2d03cf5a4f7a0a0ddd3337e315c9b commit: 6527b22f28c5cf5618b04e836bf943efd58e83d9 Author: Kerin Millar plushkava net> AuthorDate: Sat Jul 27 00:29:32 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri May 30 07:35:55 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6527b22f save-ebuild-env.sh: eliminate a redundant compound command A bash function must always define a compound command. Up until now, __save_ebuild_env() had defined a command of the { ...; } form, only to employ the ( ... ) form within. Instead, define the function so as to employ the latter form. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/save-ebuild-env.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh index 98f03bd000..418006da20 100644 --- a/bin/save-ebuild-env.sh +++ b/bin/save-ebuild-env.sh @@ -10,8 +10,7 @@ # be excluded from the output. These function are not needed for installation # or removal of the packages, and can therefore be safely excluded. # -__save_ebuild_env() { - ( +__save_ebuild_env() ( if has --exclude-init-phases $* ; then unset S __E_DESTTREE __E_INSDESTTREE __E_DOCDESTTREE __E_EXEDESTTREE \ PORTAGE_DOCOMPRESS_SIZE_LIMIT PORTAGE_DOCOMPRESS \ @@ -134,5 +133,4 @@ __save_ebuild_env() { if [[ ${BASH_VERSINFO[0]} == 3 ]]; then export fi - ) -} +)