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 93DB9158041 for ; Thu, 29 Feb 2024 14:38:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40B0BE2A9C; Thu, 29 Feb 2024 14:38:12 +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 pigeon.gentoo.org (Postfix) with ESMTPS id E1C87E2A01 for ; Thu, 29 Feb 2024 14:38:11 +0000 (UTC) Message-ID: <3e9746dd4b33494d283e0ce8f45cad629cfe1b0c.camel@gentoo.org> Subject: Re: [gentoo-dev] [PATCH 3/3] texlive-common.eclass: Use nonfatal-respecting die for fmtutil-sys From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: Paul Zander , tex@gentoo.org, Florian Schmaus Date: Thu, 29 Feb 2024 15:38:06 +0100 In-Reply-To: <20240229133839.292726-4-flow@gentoo.org> References: <20240229133839.292726-1-flow@gentoo.org> <20240229133839.292726-4-flow@gentoo.org> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-zh7XvXLLfuZJ41GPifd6" User-Agent: Evolution 3.50.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: c7a9087e-8ed3-4327-9353-b535e709dfe7 X-Archives-Hash: 2d643289b7b53efdba78307003594378 --=-zh7XvXLLfuZJ41GPifd6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2024-02-29 at 14:38 +0100, Florian Schmaus wrote: > Signed-off-by: Florian Schmaus > --- > eclass/texlive-common.eclass | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass > index 96e962cb8027..85cdb8ff204e 100644 > --- a/eclass/texlive-common.eclass > +++ b/eclass/texlive-common.eclass > @@ -199,7 +199,8 @@ efmtutil-sys() { > if has_version 'app-text/texlive-core' ; then > if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/bin/fmtutil-sys ]] ; then > einfo "Rebuilding formats" > - "${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null || die > + "${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null \ > + || die -n "fmtutil-sys returned non-zero exit status ${res}" Put '||' at end of the line, then you won't need the redundant backslash. > else > ewarn "Cannot run fmtutil-sys for some reason." > ewarn "Your formats might be inconsistent with your installed ${PN} v= ersion" --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-zh7XvXLLfuZJ41GPifd6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmXgls4SHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQOlQEH/jShMlQhu9u52Z5WVzPg+jcryXU75Yda BxvTEt3wrGMrLcEtc5mml7kiwh6am4XIQiqAknpWFAIvKlwutwNytIkXTm8IVtpU mk6hzLyo31oZ2VZin3j7/CDvEsnqhyCB0FfRNgbpF5AScvGIS4P3UA2d1LIi8lxO nICM/Xfzs8+AC3h0LthpG3Lztd8Mxrrnh+NdHhlEKVnQ+Hlo2b4HVzNK9eG/sMuh pwIWV9jFbW6DVbXhuH985oT77aDOC3f9DWnGJSyXxbK1gluagbCs7JW1bFfg7LOF 24VH2miRJNbA8lY5+QGixeVO1wRZb3j0VKB+NCKcWDDMIKT5ezzzZO8= =1wm2 -----END PGP SIGNATURE----- --=-zh7XvXLLfuZJ41GPifd6--