commit: 9c26eb4a1cc5bbb7bd1164b757c2a6fcdf37d85c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jun 20 21:15:37 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Jun 20 21:15:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c26eb4a
user-info.eclass: [QA] add EAPI guard * Declare suppported EAPIs. * Add EAPI guard to prevent newer/older unsupported EAPIs from using this eclass when they've not been tested/eclass isn't adapted for it. Signed-off-by: Sam James <sam <AT> gentoo.org> Signed-off-by: David Seifert <soap <AT> gentoo.org> eclass/user-info.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/user-info.eclass b/eclass/user-info.eclass index 15e9238ab44..d349fc17476 100644 --- a/eclass/user-info.eclass +++ b/eclass/user-info.eclass @@ -1,12 +1,18 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: user-info.eclass # @MAINTAINER: # base-sys...@gentoo.org (Linux) # Michał Górny <mgo...@gentoo.org> (NetBSD) +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: Read-only access to user and group information +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_USER_INFO_ECLASS} ]]; then _USER_INFO_ECLASS=1