summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-09-06 23:36:04 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-09-06 23:36:04 +0000
commitae7ec6d24eb2b13632b7503e31f86cece7ddfe86 (patch)
treed8e377173b7529988e6e4d4fffa0e392f9327ec6 /eclass/linux-info.eclass
parentBug 283320: Minor bug from the refactoring. (diff)
downloadhistorical-ae7ec6d24eb2b13632b7503e31f86cece7ddfe86.tar.gz
historical-ae7ec6d24eb2b13632b7503e31f86cece7ddfe86.tar.bz2
historical-ae7ec6d24eb2b13632b7503e31f86cece7ddfe86.zip
Match the function prototype that allows "-OP" form, which matches the bash versions.
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 30ecd9bf05ab..168bb81bb479 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.67 2009/09/06 23:31:47 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.68 2009/09/06 23:36:04 robbat2 Exp $
#
# Original author: John Mylchreest <johnm@gentoo.org>
# Maintainer: kernel-misc@gentoo.org
@@ -358,12 +358,12 @@ kernel_is() {
local operator test value x=0 y=0 z=0
case ${1} in
- lt) operator="-lt"; shift;;
- gt) operator="-gt"; shift;;
- le) operator="-le"; shift;;
- ge) operator="-ge"; shift;;
- eq) operator="-eq"; shift;;
- *) operator="-eq";;
+ -lt|lt) operator="-lt"; shift;;
+ -gt|gt) operator="-gt"; shift;;
+ -le|le) operator="-le"; shift;;
+ -ge|ge) operator="-ge"; shift;;
+ -eq|eq) operator="-eq"; shift;;
+ *) operator="-eq";;
esac
for x in ${@}; do