1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/vcs-snapshot.eclass | 10 +++++----- |
4 |
1 file changed, 5 insertions(+), 5 deletions(-) |
5 |
|
6 |
diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass |
7 |
index 74e5f4bcd42..0e86cb4ad51 100644 |
8 |
--- a/eclass/vcs-snapshot.eclass |
9 |
+++ b/eclass/vcs-snapshot.eclass |
10 |
@@ -4,7 +4,7 @@ |
11 |
# @ECLASS: vcs-snapshot.eclass |
12 |
# @MAINTAINER: |
13 |
# mgorny@g.o |
14 |
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 8 |
15 |
+# @SUPPORTED_EAPIS: 6 7 8 |
16 |
# @BLURB: support eclass for unpacking VCS snapshot tarballs |
17 |
# @DESCRIPTION: |
18 |
# THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS. |
19 |
@@ -42,9 +42,9 @@ |
20 |
# and however the tarballs were originally packed, all files will appear |
21 |
# in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively. |
22 |
|
23 |
-case ${EAPI:-0} in |
24 |
- 0|1|2|3|4|5|6|7|8) ;; |
25 |
- *) die "vcs-snapshot.eclass API in EAPI ${EAPI} not yet established." |
26 |
+case ${EAPI} in |
27 |
+ 6|7|8) ;; |
28 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
29 |
esac |
30 |
|
31 |
EXPORT_FUNCTIONS src_unpack |
32 |
@@ -102,7 +102,7 @@ vcs-snapshot_src_unpack() { |
33 |
|
34 |
if [[ ! ${renamed_any} ]]; then |
35 |
local w=eerror |
36 |
- [[ ${EAPI} == [0123456] ]] && w=eqawarn |
37 |
+ [[ ${EAPI} == 6 ]] && w=eqawarn |
38 |
"${w}" "${FUNCNAME} did not find any archives that needed renaming." |
39 |
"${w}" "Please verify that its usage is really necessary, and remove" |
40 |
"${w}" "the inherit if it is not." |
41 |
-- |
42 |
2.35.0 |