From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: linux-info.eclass |
Date: | Sun, 06 Sep 2009 23:36:08 |
Message-Id: | E1MkRHA-0004fF-WB@stork.gentoo.org |
1 | robbat2 09/09/06 23:36:04 |
2 | |
3 | Modified: linux-info.eclass |
4 | Log: |
5 | Match the function prototype that allows "-OP" form, which matches the bash versions. |
6 | |
7 | Revision Changes Path |
8 | 1.68 eclass/linux-info.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?rev=1.68&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?rev=1.68&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?r1=1.67&r2=1.68 |
13 | |
14 | Index: linux-info.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v |
17 | retrieving revision 1.67 |
18 | retrieving revision 1.68 |
19 | diff -p -w -b -B -u -u -r1.67 -r1.68 |
20 | --- linux-info.eclass 6 Sep 2009 23:31:47 -0000 1.67 |
21 | +++ linux-info.eclass 6 Sep 2009 23:36:04 -0000 1.68 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2006 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.67 2009/09/06 23:31:47 robbat2 Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.68 2009/09/06 23:36:04 robbat2 Exp $ |
27 | # |
28 | # Original author: John Mylchreest <johnm@g.o> |
29 | # Maintainer: kernel-misc@g.o |
30 | @@ -358,11 +358,11 @@ kernel_is() { |
31 | local operator test value x=0 y=0 z=0 |
32 | |
33 | case ${1} in |
34 | - lt) operator="-lt"; shift;; |
35 | - gt) operator="-gt"; shift;; |
36 | - le) operator="-le"; shift;; |
37 | - ge) operator="-ge"; shift;; |
38 | - eq) operator="-eq"; shift;; |
39 | + -lt|lt) operator="-lt"; shift;; |
40 | + -gt|gt) operator="-gt"; shift;; |
41 | + -le|le) operator="-le"; shift;; |
42 | + -ge|ge) operator="-ge"; shift;; |
43 | + -eq|eq) operator="-eq"; shift;; |
44 | *) operator="-eq";; |
45 | esac |