diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-26 11:59:08 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-26 11:59:08 +0000 |
commit | 4040336b9d535122ea976671b835c85840db8a4e (patch) | |
tree | f18fd50befa3f40af028fb044e452e3573402c61 /eclass | |
parent | Depend on at least dnspython-1.8.0 to fix endless loop, bug 311395. (diff) | |
download | gentoo-2-4040336b9d535122ea976671b835c85840db8a4e.tar.gz gentoo-2-4040336b9d535122ea976671b835c85840db8a4e.tar.bz2 gentoo-2-4040336b9d535122ea976671b835c85840db8a4e.zip |
Make sure USE debug is in IUSE.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xfconf.eclass | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass index dac47acd9072..cbfb654a8399 100644 --- a/eclass/xfconf.eclass +++ b/eclass/xfconf.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.11 2010/03/26 11:41:57 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.12 2010/03/26 11:59:08 ssuominen Exp $ # @ECLASS: xfconf.eclass # @MAINTAINER: @@ -64,18 +64,20 @@ EXPORT_FUNCTIONS ${XFCONF_EXPF} # @FUNCTION: xfconf_use_debug # @RETURN: -# Return --enable-debug, --enable-debug=full or --disable-debug based on -# I_KNOW_WHAT_I_AM_DOING variable +# Return --enable-debug, null, --enable-debug=full or --disable-debug based on +# I_KNOW_WHAT_I_AM_DOING variable and USE debug xfconf_use_debug() { - if use debug; then - if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then - echo "--enable-debug=full" + if has debug ${IUSE}; then + if use debug; then + if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then + echo "--enable-debug=full" + else + echo "--enable-debug" + fi else - echo "--enable-debug" - fi - else - if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then - echo "--disable-debug" + if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then + echo "--disable-debug" + fi fi fi } |