commit:     864b148cbfd35252de45e48beb2704b4675044ae
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri May 27 15:19:18 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat May 28 19:26:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=864b148c

dev-util/mingw64-toolchain: fix array check

Unimportant given variables are prefixed and unlikely
users set any of these (check is to ignore envionment),
but was wrong anyway.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild 
b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild
index e0569a0e7981..5347cee7ffdc 100644
--- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild
+++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild
@@ -203,8 +203,8 @@ src_compile() {
                # mostly unused here, so use configure directly
                eval '
                        local conf=( "${WORKDIR}/${1}"/configure "${conf[@]}" )
-                       [[ ${conf_'${id}'@a} ]] && conf+=( "${conf_'${id}'[@]}" 
)
-                       [[ ${2} && ${conf_'${id}_${2}'@a} ]] && conf+=( 
"${conf_'${id}_${2}'[@]}" )
+                       [[ ${conf_'${id}'@a} =~ a ]] && conf+=( 
"${conf_'${id}'[@]}" )
+                       [[ ${2} && ${conf_'${id}_${2}'@a} =~ a ]] && conf+=( 
"${conf_'${id}_${2}'[@]}" )
                        conf+=( ${EXTRA_ECONF} ${MWT_'${id^^}'_CONF} )
                        [[ ${2} ]] && conf+=( ${MWT_'${1^^}_${2^^}'_CONF} )'
 

Reply via email to