From 7d26e01ece751327c6be4b66dce6b2aa576b7a2f Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Sat, 2 Feb 2019 21:40:14 -0800 Subject: [PATCH] opam.eclass: check only for known EAPI, die otherwise Signed-off-by: Georgy Yakovlev --- eclass/opam.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/opam.eclass b/eclass/opam.eclass index 03ffc0276412..c742ff7e9367 100644 --- a/eclass/opam.eclass +++ b/eclass/opam.eclass @@ -13,8 +13,8 @@ # src_install for opam-based packages. case ${EAPI:-0} in - 0|1|2|3|4) die "You need at least EAPI-5 to use opam.eclass";; - *) ;; + 5|6|7) ;; + *) die "${ECLASS}: EAPI ${EAPI} not supported" ;; esac RDEPEND=">=dev-lang/ocaml-4:=" -- 2.26.2