1 |
commit: c61a8d7eb3e345ec685eb9b2f08cca6a83bd819b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:14:46 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:14:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61a8d7e |
7 |
|
8 |
multiprocessing.eclass: [QA] add EAPI guard |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
eclass/multiprocessing.eclass | 8 +++++++- |
14 |
1 file changed, 7 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/multiprocessing.eclass b/eclass/multiprocessing.eclass |
17 |
index 3e8b2f9d254..8363fa33bd1 100644 |
18 |
--- a/eclass/multiprocessing.eclass |
19 |
+++ b/eclass/multiprocessing.eclass |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
# @ECLASS: multiprocessing.eclass |
26 |
@@ -8,6 +8,7 @@ |
27 |
# Brian Harring <ferringb@g.o> |
28 |
# Mike Frysinger <vapier@g.o> |
29 |
# @BLURB: multiprocessing helper functions |
30 |
+# @SUPPORTED_EAPIS: 5 6 7 8 |
31 |
# @DESCRIPTION: |
32 |
# The multiprocessing eclass contains a suite of utility functions |
33 |
# that could be helpful to controlling parallel multiple job execution. |
34 |
@@ -23,6 +24,11 @@ |
35 |
# } |
36 |
# @CODE |
37 |
|
38 |
+case ${EAPI:-0} in |
39 |
+ [5678]) ;; |
40 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
41 |
+esac |
42 |
+ |
43 |
if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then |
44 |
_MULTIPROCESSING_ECLASS=1 |