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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DC161382C5 for ; Wed, 24 Jan 2018 03:45:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EF29E093E; Wed, 24 Jan 2018 03:45:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38403E093E for ; Wed, 24 Jan 2018 03:45:08 +0000 (UTC) Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 4CD37335C04 for ; Wed, 24 Jan 2018 03:45:07 +0000 (UTC) Date: Tue, 23 Jan 2018 22:45:06 -0500 From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: Re: [gentoo-catalyst] RFC: [PATCH]: Test for presence of distcc before preclean to avoid failure Message-ID: <20180124034506.GA1731@vapier> Mail-Followup-To: gentoo-catalyst@lists.gentoo.org References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: X-Archives-Salt: 05e0496c-d325-4b3f-8aef-a158d42864d5 X-Archives-Hash: 20d857142a2eb22cd766d41a4d895b87 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 24 Jan 2018 00:13, M. J. Everitt wrote: > --- a/targets/stage3/stage3-preclean-chroot.sh > +++ b/targets/stage3/stage3-preclean-chroot.sh > @@ -11,7 +11,10 @@ cleanup_stages > =20 > if [ -n "${clst_DISTCC}" ] > then > - run_merge -C sys-devel/distcc || exit 1 > + portageq match / sys-devel/distcc 2>&1 | grep -s -q distcc just do a -n test on the output instead although seems like portageq should be better with its exit status > + if [ $? =3D=3D 0 ]; then use `[[` instead of `[` when writing bash, especially when using bash code like "=3D=3D". -mike --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAlpoAUIACgkQQWM7n+g3 9YFocg/8DxpN9+/hYsKHS/zossJ+WbXcMra+AkxHzThplTlVddE0g1Hc67RQGspW +SF7acHK8o5ZCEUVk4Dm5UjYgCPONFWarYwqYU/uTqu0hJzZ4JjrINvjMhmy2jwf R5lZ21pWqVLiXF08oFsFU8Swuz3hfeb46Rs4R74FfIi76SQULIUF3Yhu4hNFup38 um3JXXS1AIjrfTVQzC9Uk/xWwUzm0+r7x89u6H9KWfWsXCd0nqQD8urIg5SkVqaX iAnmuIpg+zZcPL18rZh3senET55uR+OkdT4GEb63tJ0vKGn8KqbgWvqm/dLkyShb dfQfbR0an8dks/xxGXwQwql2oj/gkkTNrnGiq/TAk5/Ovskif7a1AQVj6uXA+tPY QU5iJxYZXpMf+oAPotyksgX0tggXWJ8rNpbAmvbDlr3PpqCv8c+WKMJ1xg8gV9ZC cTswsbAgiKTOokz7i7ecmBEBZ/R9A0xG3WarmvR5ls5xMVMITZUnqIg52LQrIIG5 i1u1MG/ObrVHBI5B0oOEGshfa7vHTYGThNyT1YK2TWfyxEbUHfid6/wzdtQx3d5U JgsHD00TqY4DyqAxnX3q+0EswYziWZGpXmdm66GnleHQvl0vO/xlAV424EzVi6WI 885ruzf7eteviKRaQPfcb95HjUy/WJVxIY7eW80ZN4umdbvCbqQ= =unOG -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--