eclass/user-info: Sync with Gentoo

It's from Gentoo commit fbbce31f0e4ec8fc1da5cfb19feef4e0ace000d6.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:27:53 +00:00 committed by Krzesimir Nowak
parent a9b4b07a85
commit a079b14332

View File

@ -5,17 +5,17 @@
# @MAINTAINER:
# base-system@gentoo.org (Linux)
# Michał Górny <mgorny@gentoo.org> (NetBSD)
# @SUPPORTED_EAPIS: 7 8
# @SUPPORTED_EAPIS: 7 8 9
# @BLURB: Read-only access to user and group information
case ${EAPI} in
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_USER_INFO_ECLASS} ]]; then
_USER_INFO_ECLASS=1
case ${EAPI} in
7|8|9) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# @FUNCTION: egetent
# @USAGE: <database> <key>
# @DESCRIPTION: