[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] guard ssl-cert.eclass against EAPI=0
From: "Anthony G. Basile" <blueness () gentoo ! org>
Date: 2016-04-22 21:40:30
Message-ID: 571A9A4E.5050203 () gentoo ! org
[Download RAW message or body]
Following up on the previous change to ssl-cert.eclass, I figure I'd
better guard against EAPI=0 since it uses slots. For your review:
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 4f573ba..e34b07a 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -13,6 +13,18 @@
# @EXAMPLE:
# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
+# Guard against unsupported EAPIs. We need EAPI >= 1 for slot
dependencies.
+case "${EAPI:-0}" in
+ 0)
+ die "${ECLASS}.eclass: EAPI=0 is not supported. Please
upgrade to EAPI >= 1."
+ ;;
+ 1|2|3|4|5|6)
+ ;;
+ *)
+ die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
+ ;;
+esac
+
# @ECLASS-VARIABLE: SSL_CERT_MANDATORY
# @DESCRIPTION:
# Set to non zero if ssl-cert is mandatory for ebuild.
--
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail : blueness@gentoo.org
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
GnuPG ID : F52D4BBA
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic