Gentoo Archives: gentoo-dev

From: Marek Szuba <marecki@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 2/2] lua-single.eclass: consider historical impls in _lua_verify_patterns()
Date: Fri, 23 Jul 2021 23:21:45
Message-Id: 20210723232045.193479-3-marecki@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/2] Lua eclasses: prepare for dropping lua5-2 support by Marek Szuba
1 This is so that lua_gen_foo() calls die on mentions of formerly
2 supported implementations, allowing for such mentions to be gradually
3 removed from ebuilds which contain them.
4
5 Signed-off-by: Marek Szuba <marecki@g.o>
6 ---
7 eclass/lua-single.eclass | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/eclass/lua-single.eclass b/eclass/lua-single.eclass
11 index ab4fdb3c75a..f55c3f80948 100644
12 --- a/eclass/lua-single.eclass
13 +++ b/eclass/lua-single.eclass
14 @@ -348,7 +348,7 @@ _lua_verify_patterns() {
15
16 local impl pattern
17 for pattern; do
18 - for impl in "${_LUA_ALL_IMPLS[@]}"; do
19 + for impl in "${_LUA_ALL_IMPLS[@]}" "${_LUA_HISTORICAL_IMPLS[@]}"; do
20 [[ ${impl} == ${pattern/./-} ]] && continue 2
21 done
22
23 --
24 2.31.1