From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-89668-garchives=archives.gentoo.org@lists.gentoo.org>
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 DDABB138334
	for <garchives@archives.gentoo.org>; Wed, 11 Dec 2019 19:56:05 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 062DFE08AD;
	Wed, 11 Dec 2019 19:56:02 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.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 B3131E08A8
	for <gentoo-dev@lists.gentoo.org>; Wed, 11 Dec 2019 19:56:01 +0000 (UTC)
Received: from sf (tunnel547699-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:3e6::2])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: slyfox)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 4129E34D943;
	Wed, 11 Dec 2019 19:56:00 +0000 (UTC)
Date: Wed, 11 Dec 2019 19:55:57 +0000
From: Sergei Trofimovich <slyfox@gentoo.org>
To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= <mgorny@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org, haskell@gentoo.org
Subject: [gentoo-dev] Re: [PATCH] haskell-cabal.eclass: Fix MissingTestRestrict
Message-ID: <20191211195557.30906fba@sf>
In-Reply-To: <20191211095136.201200-1-mgorny@gentoo.org>
References: <20191211095136.201200-1-mgorny@gentoo.org>
X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
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
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: e15ccbd4-2899-4649-bd54-0be408f0f1a4
X-Archives-Hash: c195d2af648d255c11d92d91a59e0e6e

On Wed, 11 Dec 2019 10:51:36 +0100
Micha=C5=82 G=C3=B3rny <mgorny@gentoo.org> wrote:

> This fixes 564 cases of MissingTestRestrict.  According to md5-cache
> inspection, no other changes in metadata occur.
>=20
> Signed-off-by: Micha=C5=82 G=C3=B3rny <mgorny@gentoo.org>

Looks good.

> ---
>  eclass/haskell-cabal.eclass | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>=20
> diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
> index 30b67bf7af94..2fc797e764cb 100644
> --- a/eclass/haskell-cabal.eclass
> +++ b/eclass/haskell-cabal.eclass
> @@ -1,4 +1,4 @@
> -# Copyright 1999-2018 Gentoo Authors
> +# Copyright 1999-2019 Gentoo Authors
>  # Distributed under the terms of the GNU General Public License v2
> =20
>  # @ECLASS: haskell-cabal.eclass
> @@ -137,6 +137,7 @@ fi
> =20
>  if [[ -n "${CABAL_TEST_SUITE}" ]]; then
>  	IUSE=3D"${IUSE} test"
> +	RESTRICT+=3D" !test? ( test )"
>  fi
> =20
>  # returns the version of cabal currently in use.
> --=20
> 2.24.0
>=20


--=20

  Sergei