use ppc-macos -> useq ppc-macos, since use ppc-macos breaks egetent().
authorMamoru Komachi <usata@gentoo.org>
Sat, 13 Nov 2004 11:15:33 +0000 (11:15 +0000)
committerMamoru Komachi <usata@gentoo.org>
Sat, 13 Nov 2004 11:15:33 +0000 (11:15 +0000)
eclass/eutils.eclass

index baf9eb04159dc97298e41f6fb71543b541f61d46..73ffb49d36f9609bee53d0b314ef1ef125c83b45 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/eutils.eclass,v 1.123 2004/11/11 04:10:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.124 2004/11/13 11:15:33 usata Exp $
 #
 # Author: Martin Schlemmer <azarah@gentoo.org>
 #
@@ -579,7 +579,7 @@ emktemp() {
 #
 # egetent(database, key)
 egetent() {
-       if use ppc-macos ; then
+       if useq ppc-macos ; then
                case "$2" in
                  *[!0-9]*) # Non numeric
                        nidump $1 . | awk -F":" "{ if (\$1 ~ /^$2$/) {print \$0;exit;} }"
@@ -736,7 +736,7 @@ enewuser() {
        local eextra="$@"
        local oldsandbox="${SANDBOX_ON}"
        export SANDBOX_ON="0"
-       if use ppc-macos
+       if useq ppc-macos
        then
                ### Make the user
                if [ -z "${eextra}" ]
@@ -829,7 +829,7 @@ enewgroup() {
                then
                        if [ -z "`egetent group ${egid}`" ]
                        then
-                               if use ppc-macos ; then
+                               if useq ppc-macos ; then
                                        opts="${opts} ${egid}"
                                else
                                        opts="${opts} -g ${egid}"
@@ -853,8 +853,7 @@ enewgroup() {
        # add the group
        local oldsandbox="${SANDBOX_ON}"
        export SANDBOX_ON="0"
-       if use ppc-macos
-       then
+       if useq ppc-macos ; then
                if [ ! -z "${eextra}" ];
                then
                        einfo "Extra options are not supported on macos yet"