From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3655158020 for ; Sat, 26 Nov 2022 10:54:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B25AE0A63; Sat, 26 Nov 2022 10:54:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 pigeon.gentoo.org (Postfix) with ESMTPS id 17E8AE0A63 for ; Sat, 26 Nov 2022 10:54:36 +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 4D4363414BB for ; Sat, 26 Nov 2022 10:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3390177A for ; Sat, 26 Nov 2022 10:54:31 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1669376221.3191567b7af405031ab9a2e4e5a01daad14293b2.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/dotnet-utils.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 3191567b7af405031ab9a2e4e5a01daad14293b2 X-VCS-Branch: master Date: Sat, 26 Nov 2022 10:54:31 +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: 8728d623-23b0-4bf6-92c8-7ccee533bd77 X-Archives-Hash: 0dfe219435a3afb70ffd18b19ab5b628 commit: 3191567b7af405031ab9a2e4e5a01daad14293b2 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Fri Nov 25 11:33:26 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Fri Nov 25 11:37:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3191567b dotnet-utils.eclass: use "edo" Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/dotnet-utils.eclass | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/eclass/dotnet-utils.eclass b/eclass/dotnet-utils.eclass index ea7c6591e..17c2c685a 100644 --- a/eclass/dotnet-utils.eclass +++ b/eclass/dotnet-utils.eclass @@ -17,7 +17,7 @@ esac if [[ ! ${_DOTNET_UTILS_ECLASS} ]]; then _DOTNET_UTILS_ECLASS=1 -inherit multiprocessing +inherit edo multiprocessing # @ECLASS_VARIABLE: DOTNET_SLOT # @REQUIRED @@ -129,25 +129,18 @@ dotnet-utils_pkg_setup() { } # @FUNCTION: edotnet -# @USAGE: [[command] ...] +# @USAGE: [args...] # @DESCRIPTION: # Call dotnet, passing the supplied arguments. -# @RETURN: dotnet exit code edotnet() { - debug-print-function ${FUNCNAME} "$@" - - local ret - - set -- "$DOTNET_EXECUTABLE" "${@}" --runtime "${DOTNET_RUNTIME}" -maxcpucount:$(makeopts_jobs) - echo "${@}" >&2 - "${@}" - ret=${?} + debug-print-function ${FUNCNAME} "${@}" - if [[ ${ret} -ne 0 ]]; then - die -n "edotnet failed" - fi + local dotnet_args=( + --runtime "${DOTNET_RUNTIME}" + -maxcpucount:$(makeopts_jobs) + ) - return ${ret} + edo "${DOTNET_EXECUTABLE}" "${@}" "${dotnet_args[@]}" } # @FUNCTION: dotnet-utils_src_unpack