mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 07:26:58 +02:00
eclass/savedconfig: Sync with Gentoo
It's from Gentoo commit 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.
This commit is contained in:
parent
22e857267b
commit
e21b300e09
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: savedconfig.eclass
|
||||
@ -30,15 +30,18 @@
|
||||
# 4. Emerge the package with just USE=savedconfig to get the custom
|
||||
# build.
|
||||
|
||||
case ${EAPI} in
|
||||
6|7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_SAVEDCONFIG_ECLASS} ]]; then
|
||||
_SAVEDCONFIG_ECLASS=1
|
||||
|
||||
inherit portability
|
||||
|
||||
IUSE="savedconfig"
|
||||
|
||||
case ${EAPI} in
|
||||
6|7|8) ;;
|
||||
*) die "EAPI=${EAPI:-0} is not supported" ;;
|
||||
esac
|
||||
|
||||
# @FUNCTION: save_config
|
||||
# @USAGE: <config files to save>
|
||||
# @DESCRIPTION:
|
||||
@ -152,4 +155,6 @@ savedconfig_pkg_postinst() {
|
||||
fi
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
EXPORT_FUNCTIONS pkg_postinst
|
||||
|
Loading…
Reference in New Issue
Block a user