From: Michał Górny Date: Sat, 21 Nov 2015 20:23:36 +0000 (+0100) Subject: [QA] games-mods.eclass: Forbid EAPIs 3+ due to missing code, #540048 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=98fddc692c99dffe3c2be0cde88d44b582158c82;p=gentoo.git [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 --- 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