From dbbbff793bf75e3c180706df7575d7caf2c041dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 18 Sep 2011 07:57:55 +0000 Subject: [PATCH] Fail if myeconfargs is not an array. --- eclass/autotools-utils.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index ec7d2e04503f..04731d569276 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.21 2011/09/18 07:57:34 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.22 2011/09/18 07:57:55 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -225,6 +225,9 @@ autotools-utils_src_prepare() { autotools-utils_src_configure() { debug-print-function ${FUNCNAME} "$@" + [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \ + || die 'autotools-utils.eclass: myeconfargs has to be an array.' + # Common args local econfargs=() -- 2.26.2