mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
eclass/vcs-clean: Sync with Gentoo
It's from Gentoo commit d654f219ea2fc0a26718ec9ee512c98216e1d99a.
This commit is contained in:
parent
e88871d8e6
commit
cba5c2bbd4
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: vcs-clean.eclass
|
||||
@ -9,14 +9,18 @@
|
||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
||||
# @BLURB: helper functions to remove VCS directories
|
||||
|
||||
case ${EAPI} in
|
||||
5|6|7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_VCS_CLEAN_ECLASS} ]] ; then
|
||||
_VCS_CLEAN_ECLASS=1
|
||||
|
||||
case ${EAPI} in
|
||||
5|6)
|
||||
ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!"
|
||||
ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI."
|
||||
;;
|
||||
7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
# @FUNCTION: ecvs_clean
|
||||
# @USAGE: [list of dirs]
|
||||
# @DESCRIPTION:
|
||||
|
Loading…
Reference in New Issue
Block a user