diff options
author | 2021-06-20 23:15:31 +0200 | |
---|---|---|
committer | 2021-06-20 23:15:31 +0200 | |
commit | 314113006b2640c3876b3385a653f8d6ca5b86d9 (patch) | |
tree | ee9620197e2a5214f531ab61f979936e925d6262 | |
parent | toolchain-funcs.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-314113006b2640c3876b3385a653f8d6ca5b86d9.tar.gz gentoo-314113006b2640c3876b3385a653f8d6ca5b86d9.tar.bz2 gentoo-314113006b2640c3876b3385a653f8d6ca5b86d9.zip |
unpacker.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@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r-- | eclass/unpacker.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index d01a6e8e648a..b8a40cc682e0 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -5,6 +5,7 @@ # @MAINTAINER: # base-system@gentoo.org # @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # Some extraneous file formats are not part of PMS, or are only in certain # EAPIs. Rather than worrying about that, support the crazy cruft here @@ -14,6 +15,11 @@ # - merge rpm unpacking # - support partial unpacks? +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_UNPACKER_ECLASS} ]]; then _UNPACKER_ECLASS=1 |