1 |
Following up on the previous change to ssl-cert.eclass, I figure I'd |
2 |
better guard against EAPI=0 since it uses slots. For your review: |
3 |
|
4 |
|
5 |
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass |
6 |
index 4f573ba..e34b07a 100644 |
7 |
--- a/eclass/ssl-cert.eclass |
8 |
+++ b/eclass/ssl-cert.eclass |
9 |
@@ -13,6 +13,18 @@ |
10 |
# @EXAMPLE: |
11 |
# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} |
12 |
|
13 |
+# Guard against unsupported EAPIs. We need EAPI >= 1 for slot |
14 |
dependencies. |
15 |
+case "${EAPI:-0}" in |
16 |
+ 0) |
17 |
+ die "${ECLASS}.eclass: EAPI=0 is not supported. Please |
18 |
upgrade to EAPI >= 1." |
19 |
+ ;; |
20 |
+ 1|2|3|4|5|6) |
21 |
+ ;; |
22 |
+ *) |
23 |
+ die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet." |
24 |
+ ;; |
25 |
+esac |
26 |
+ |
27 |
# @ECLASS-VARIABLE: SSL_CERT_MANDATORY |
28 |
# @DESCRIPTION: |
29 |
# Set to non zero if ssl-cert is mandatory for ebuild. |
30 |
|
31 |
-- |
32 |
Anthony G. Basile, Ph.D. |
33 |
Gentoo Linux Developer [Hardened] |
34 |
E-Mail : blueness@g.o |
35 |
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
36 |
GnuPG ID : F52D4BBA |