Preventing -eq unary errors
authorJohn Mylchreest <johnm@gentoo.org>
Tue, 28 Dec 2004 21:00:10 +0000 (21:00 +0000)
committerJohn Mylchreest <johnm@gentoo.org>
Tue, 28 Dec 2004 21:00:10 +0000 (21:00 +0000)
eclass/kernel-2.eclass
eclass/linux-info.eclass

index cc0f45a352618c1bf8af71cc9b9ec5a47b970ae1..745660c5dfd190b8d08bde274b100fe30b844abf 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.64 2004/12/28 20:14:44 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.65 2004/12/28 20:58:35 johnm Exp $
 
 # Description: kernel.eclass rewrite for a clean base regarding the 2.6
 #              series of kernel with back-compatibility for 2.4
@@ -66,7 +66,7 @@ kernel_is() {
        local RESULT operator value test
        RESULT=0
        
-       operator="-eq"
+       operator="="
        if [ "${1}" == "lt" ]
        then
                operator="-lt"
index 38a47d93438910725c618523fee1625d99b43c1f..e3ef3dab9360ed94d009984c7ff440730f8156c7 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.12 2004/12/28 20:05:45 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.13 2004/12/28 21:00:10 johnm Exp $
 #
 # Description: This eclass is used as a central eclass for accessing kernel
 #                         related information for sources already installed.
@@ -185,7 +185,7 @@ kernel_is() {
        local RESULT operator value test
        RESULT=0
        
-       operator="-eq"
+       operator="="
        if [ "${1}" == "lt" ]
        then
                operator="-lt"