commit:     98fddc692c99dffe3c2be0cde88d44b582158c82
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 21 20:23:36 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 21 20:26:14 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98fddc69

[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 7cefa45..faf267b 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

Reply via email to