commit: 3cd6f85b184bd099bb1204814a51abf1f4577417 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Tue Feb 1 18:23:14 2022 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Tue Feb 1 18:23:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cd6f85b
vcs-snapshot.eclass: remove EAPI 0-5 Signed-off-by: David Seifert <soap <AT> gentoo.org> eclass/vcs-snapshot.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass index 74e5f4bcd42f..0e86cb4ad51f 100644 --- a/eclass/vcs-snapshot.eclass +++ b/eclass/vcs-snapshot.eclass @@ -4,7 +4,7 @@ # @ECLASS: vcs-snapshot.eclass # @MAINTAINER: # [email protected] -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 8 +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: support eclass for unpacking VCS snapshot tarballs # @DESCRIPTION: # THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS. @@ -42,9 +42,9 @@ # and however the tarballs were originally packed, all files will appear # in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively. -case ${EAPI:-0} in - 0|1|2|3|4|5|6|7|8) ;; - *) die "vcs-snapshot.eclass API in EAPI ${EAPI} not yet established." +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac EXPORT_FUNCTIONS src_unpack @@ -102,7 +102,7 @@ vcs-snapshot_src_unpack() { if [[ ! ${renamed_any} ]]; then local w=eerror - [[ ${EAPI} == [0123456] ]] && w=eqawarn + [[ ${EAPI} == 6 ]] && w=eqawarn "${w}" "${FUNCNAME} did not find any archives that needed renaming." "${w}" "Please verify that its usage is really necessary, and remove" "${w}" "the inherit if it is not."
