diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-02 04:34:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-02 04:34:59 +0000 |
commit | b447421e04ea08b7dfed4c2c112d18712193d646 (patch) | |
tree | 0b7bbfd7791b2bf74a99f5d886fd8f34f1fd621d /eclass/kernel-2.eclass | |
parent | Update to EAPI 4. (diff) | |
download | gentoo-2-b447421e04ea08b7dfed4c2c112d18712193d646.tar.gz gentoo-2-b447421e04ea08b7dfed4c2c112d18712193d646.tar.bz2 gentoo-2-b447421e04ea08b7dfed4c2c112d18712193d646.zip |
previous commit inverted the tested values
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 6cd0fbe35af3..f8bdb1d44703 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.269 2011/12/02 04:19:45 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.270 2011/12/02 04:34:59 vapier Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -406,8 +406,8 @@ kernel_is() { esac [[ $# -gt 3 ]] && die "Error in kernel-2_kernel_is(): too many parameters" - : $(( value = (KV_MAJOR << 16) + (KV_MINOR << 8) + KV_PATCH )) - : $(( test = (${1:-${KV_MAJOR}} << 16) + (${2:-${KV_MINOR}} << 8) + ${3:-${KV_PATCH}} )) + : $(( test = (KV_MAJOR << 16) + (KV_MINOR << 8) + KV_PATCH )) + : $(( value = (${1:-${KV_MAJOR}} << 16) + (${2:-${KV_MINOR}} << 8) + ${3:-${KV_PATCH}} )) [ ${test} ${operator} ${value} ] } |