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 B19D515802F for ; Fri, 31 Mar 2023 18:48:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEC59E086F; Fri, 31 Mar 2023 18:48:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 CB3EEE086F for ; Fri, 31 Mar 2023 18:48:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id D56AC340FF2 for ; Fri, 31 Mar 2023 18:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96C178EB for ; Fri, 31 Mar 2023 18:48:07 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1680287994.5c938acd334d8d33bbdb5a116fd11a7d885aaa40.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/shell-completion.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 5c938acd334d8d33bbdb5a116fd11a7d885aaa40 X-VCS-Branch: dev Date: Fri, 31 Mar 2023 18:48:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c1ce2b41-2432-44eb-96c2-1cb6e8c5cdf2 X-Archives-Hash: 3878b21fa5ac0e4f295d516a454e2348 commit: 5c938acd334d8d33bbdb5a116fd11a7d885aaa40 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Fri Mar 31 18:39:54 2023 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Fri Mar 31 18:39:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c938acd shell-completion.eclass: move EAPI guard Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/shell-completion.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/shell-completion.eclass b/eclass/shell-completion.eclass index 271378c51..008c1c0a0 100644 --- a/eclass/shell-completion.eclass +++ b/eclass/shell-completion.eclass @@ -11,17 +11,17 @@ # for popular shells. It inherits the already widely adopted # `bash-completion-r1`, thus extending on its functionality. +case ${EAPI} in + 8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" +esac + if [[ ! ${_SHELL_COMPLETION_ECLASS} ]]; then _SHELL_COMPLETION_ECLASS=1 # Extend bash-completion-r1 inherit bash-completion-r1 -case ${EAPI} in - 6|7|8) ;; - *) die "${ECLASS}: EAPI ${EAPI} unsupported." -esac - # @FUNCTION: _shell-completion_get_fishcompdir # @INTERNAL # @DESCRIPTION: