diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-23 05:51:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-23 05:51:14 +0000 |
commit | d9cedc8eb119d324adac95f6b5ff84451ce82c01 (patch) | |
tree | 4ed973e59bfda4091e1f39e69fd42b59a67fa016 /eclass | |
parent | add ~amd64, bug 258747 (diff) | |
download | gentoo-2-d9cedc8eb119d324adac95f6b5ff84451ce82c01.tar.gz gentoo-2-d9cedc8eb119d324adac95f6b5ff84451ce82c01.tar.bz2 gentoo-2-d9cedc8eb119d324adac95f6b5ff84451ce82c01.zip |
return 1 rather than -1 as bash-4 hates negative return values and all consumers only care the value is not 0
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 6 | ||||
-rw-r--r-- | eclass/kernel-mod.eclass | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index dba391d1ce49..e8bef1e1ef51 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.217 2009/01/28 21:01:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.218 2009/02/23 05:51:14 vapier Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -107,7 +107,7 @@ debug-print-kernel2-variables() { #============================================================== handle_genpatches() { local tarball - [[ -z ${K_WANT_GENPATCHES} || -z ${K_GENPATCHES_VER} ]] && return -1 + [[ -z ${K_WANT_GENPATCHES} || -z ${K_GENPATCHES_VER} ]] && return 1 for i in ${K_WANT_GENPATCHES} ; do tarball="genpatches-${OKV}-${K_GENPATCHES_VER}.${i}.tar.bz2" diff --git a/eclass/kernel-mod.eclass b/eclass/kernel-mod.eclass index 0db93a5cf218..53dcdc7b4481 100644 --- a/eclass/kernel-mod.eclass +++ b/eclass/kernel-mod.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-mod.eclass,v 1.15 2006/02/28 03:05:35 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-mod.eclass,v 1.16 2009/02/23 05:51:14 vapier Exp $ # !!!!!!!!!! # @@ -94,7 +94,7 @@ kernel-mod_configoption_present() { then return 0 else - return -1 + return 1 fi } @@ -105,7 +105,7 @@ kernel-mod_configoption_module() { then return 0 else - return -1 + return 1 fi } @@ -116,7 +116,7 @@ kernel-mod_configoption_builtin() { then return 0 else - return -1 + return 1 fi } |