1 |
commit: 314113006b2640c3876b3385a653f8d6ca5b86d9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:15:31 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:15:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31411300 |
7 |
|
8 |
unpacker.eclass: [QA] add EAPI guard |
9 |
|
10 |
* Declare suppported EAPIs. |
11 |
* Add EAPI guard to prevent newer/older unsupported EAPIs from using this |
12 |
eclass when they've not been tested/eclass isn't adapted for it. |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
eclass/unpacker.eclass | 6 ++++++ |
18 |
1 file changed, 6 insertions(+) |
19 |
|
20 |
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass |
21 |
index d01a6e8e648..b8a40cc682e 100644 |
22 |
--- a/eclass/unpacker.eclass |
23 |
+++ b/eclass/unpacker.eclass |
24 |
@@ -5,6 +5,7 @@ |
25 |
# @MAINTAINER: |
26 |
# base-system@g.o |
27 |
# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs |
28 |
+# @SUPPORTED_EAPIS: 5 6 7 |
29 |
# @DESCRIPTION: |
30 |
# Some extraneous file formats are not part of PMS, or are only in certain |
31 |
# EAPIs. Rather than worrying about that, support the crazy cruft here |
32 |
@@ -14,6 +15,11 @@ |
33 |
# - merge rpm unpacking |
34 |
# - support partial unpacks? |
35 |
|
36 |
+case ${EAPI:-0} in |
37 |
+ [567]) ;; |
38 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
39 |
+esac |
40 |
+ |
41 |
if [[ -z ${_UNPACKER_ECLASS} ]]; then |
42 |
_UNPACKER_ECLASS=1 |