aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-02 13:25:25 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-02 14:30:14 +0100
commit9e4f5360b69558799c6974ed72248b86d09c6549 (patch)
tree010c2f2a5fb7df2e616442400eaac933b9e47556
parentGentooGetUser(): Drop --global option for git config (diff)
downloadgentoo-syntax-9e4f5360b69558799c6974ed72248b86d09c6549.tar.gz
gentoo-syntax-9e4f5360b69558799c6974ed72248b86d09c6549.tar.bz2
gentoo-syntax-9e4f5360b69558799c6974ed72248b86d09c6549.zip
newebuild: Use standard clause for unsupported EAPI in new eclasses
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--plugin/newebuild.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index fddbc59..fd3eb4f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -49,7 +49,7 @@ fun! <SID>MakeNewEbuild()
put =''
put ='case ${EAPI} in'
put =' 8) ;;'
- put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
+ put =' *) die \"${ECLASS}: EAPI ${EAPI:-0} not supported\" ;;'
put ='esac'
put =''
let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")