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 B43EC13933E for ; Mon, 5 Jul 2021 21:13:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 348F1E0AC4; Mon, 5 Jul 2021 21:13:17 +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 9A54FE0ABD for ; Mon, 5 Jul 2021 21:13:16 +0000 (UTC) Received: (nullmailer pid 1773 invoked by uid 1000); Mon, 05 Jul 2021 21:13:07 -0000 From: William Hubbs To: gentoo-dev@lists.gentoo.org Cc: ulm@gentoo.org, William Hubbs Subject: [gentoo-dev] [PATCH 2/3] lua-utils.eclass: clean up the eapi test Date: Mon, 5 Jul 2021 16:12:24 -0500 Message-Id: <20210705211225.1695-3-williamh@gentoo.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210705211225.1695-1-williamh@gentoo.org> References: <20210705211225.1695-1-williamh@gentoo.org> 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 Content-Transfer-Encoding: 8bit X-Archives-Salt: ec73c5e5-0404-4660-9d9c-8ddcd02c38e1 X-Archives-Hash: ee66cffd9483b7c7657da4ec30f0b029 Signed-off-by: William Hubbs --- eclass/lua-utils.eclass | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/eclass/lua-utils.eclass b/eclass/lua-utils.eclass index 59959eaf9c0..278bbca58a3 100644 --- a/eclass/lua-utils.eclass +++ b/eclass/lua-utils.eclass @@ -17,15 +17,10 @@ # This eclass neither sets any metadata variables nor exports any phase # functions. It can be inherited safely. -case ${EAPI:-0} in - 0|1|2|3|4|5|6) - die "Unsupported EAPI=${EAPI} (too old) for ${ECLASS}" - ;; +case ${EAPI} in 7|8) ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac if [[ ! ${_LUA_UTILS_R0} ]]; then -- 2.31.1