# 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>
#
#
# 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;} }"
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}" ]
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}"
# 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"