From cff6e7888af31d1db2519ce17d5b30baf5270002 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Jul 2011 09:54:09 -0700 Subject: Invert has/hasq and use/useq implementations. We need to migrate away from hasq and useq since they are deprecated (bug #199722). --- bin/ebuild.sh | 8 ++++---- bin/isolated-functions.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 8c301d8c9..f9a87afe5 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -127,19 +127,19 @@ esyslog() { return 0 } -use() { - useq ${1} +useq() { + use ${1} } usev() { - if useq ${1}; then + if use ${1}; then echo "${1#!}" return 0 fi return 1 } -useq() { +use() { local u=$1 local found=0 diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 24443ac1b..a4bd0a95c 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -511,19 +511,19 @@ if [[ -z ${XARGS} ]] ; then esac fi -has() { - hasq "$@" +hasq() { + has "$@" } hasv() { - if hasq "$@" ; then + if has "$@" ; then echo "$1" return 0 fi return 1 } -hasq() { +has() { [[ " ${*:2} " == *" $1 "* ]] } -- cgit v1.2.3-1-g7c22