[QA] games-mods.eclass: Forbid EAPIs 3+ due to missing code, #540048
authorMichał Górny <mgorny@gentoo.org>
Sat, 21 Nov 2015 20:23:36 +0000 (21:23 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 21 Nov 2015 20:26:14 +0000 (21:26 +0100)
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

index 7cefa45b0fbb725bc5d8965dab689bfbbfe8f7e0..faf267b6249932eace834c4d91dd93c4358cb218 100644 (file)
@@ -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