From 98fddc692c99dffe3c2be0cde88d44b582158c82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 21 Nov 2015 21:23:36 +0100 Subject: [PATCH] [QA] games-mods.eclass: Forbid EAPIs 3+ due to missing code, #540048 Forbid using EAPIs other than 0, 1 & 2 in the games-mods.eclass since the eclass misses conditionals for other EAPIs and therefore any ebuild using it with a newer EAPI would break terribly. Bug: https://bugs.gentoo.org/540048 --- eclass/games-mods.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass index 7cefa45b0fbb..faf267b62499 100644 --- a/eclass/games-mods.eclass +++ b/eclass/games-mods.eclass @@ -9,6 +9,8 @@ # MOD_DIR - Subdirectory name for the mod, if applicable # MOD_ICON - Custom icon for the mod, instead of the default +[[ ${EAPI:-0} == [012] ]] || die "EAPI ${EAPI} not supported" + inherit eutils games EXPORT_FUNCTIONS src_install pkg_postinst -- 2.26.2