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
commit136ae463087620fee802004417e0a1c9b8e72890 (patch)
tree04a254ed6587c6dcda229a552ed46ef91b650ba4
parentBug 283320: Minor bug from the refactoring. (diff)
downloadgentoo-2-136ae463087620fee802004417e0a1c9b8e72890.tar.gz
gentoo-2-136ae463087620fee802004417e0a1c9b8e72890.tar.bz2
gentoo-2-136ae463087620fee802004417e0a1c9b8e72890.zip
Match the function prototype that allows "-OP" form, which matches the bash versions.
-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