1 |
commit: 9e4f5360b69558799c6974ed72248b86d09c6549 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 12:25:25 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 13:30:14 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=9e4f5360 |
7 |
|
8 |
newebuild: Use standard clause for unsupported EAPI in new eclasses |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
plugin/newebuild.vim | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim |
16 |
index fddbc59..fd3eb4f 100644 |
17 |
--- a/plugin/newebuild.vim |
18 |
+++ b/plugin/newebuild.vim |
19 |
@@ -49,7 +49,7 @@ fun! <SID>MakeNewEbuild() |
20 |
put ='' |
21 |
put ='case ${EAPI} in' |
22 |
put =' 8) ;;' |
23 |
- put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"' |
24 |
+ put =' *) die \"${ECLASS}: EAPI ${EAPI:-0} not supported\" ;;' |
25 |
put ='esac' |
26 |
put ='' |
27 |
let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") |