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 A49B31382C5 for ; Tue, 6 Mar 2018 19:29:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2534E096F; Tue, 6 Mar 2018 19:29:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 59351E0964 for ; Tue, 6 Mar 2018 19:29:07 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 141EE335C2F for ; Tue, 6 Mar 2018 19:29:05 +0000 (UTC) Subject: Re: [gentoo-dev] [PATCH 1/6] eapi7-ver.eclass: Explicitly indicate that EAPI 7+ includes it To: gentoo-dev@lists.gentoo.org References: <20180306172543.26683-1-mgorny@gentoo.org> <20180306172543.26683-2-mgorny@gentoo.org> From: Michael Orlitzky Message-ID: <816b6104-b131-504d-855d-bcc6fa05a6ee@gentoo.org> Date: Tue, 6 Mar 2018 14:28:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 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 MIME-Version: 1.0 In-Reply-To: <20180306172543.26683-2-mgorny@gentoo.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Archives-Salt: 6909fd0f-5719-40bc-a801-180108842543 X-Archives-Hash: b19b8fd3a8856669079f9bcb64b9bfd4 On 03/06/2018 12:25 PM, Michał Górny wrote: > --- > eclass/eapi7-ver.eclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass > index 7eb070c68171..6117124a90a5 100644 > --- a/eclass/eapi7-ver.eclass > +++ b/eclass/eapi7-ver.eclass > @@ -63,7 +63,7 @@ case ${EAPI:-0} in > 6) > ;; > *) > - die "${ECLASS}: EAPI=${EAPI} unknown";; > + die "${ECLASS}: EAPI=${EAPI} includes all functions from this eclass";; > esac > That error message might be a lie; think exheres-0. I think you can put the "6" case first, and then change the "0|1|2|3|4|5" case to "*" to have all others die with "not supported".