aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-08 09:54:09 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-08 09:54:09 -0700
commitcff6e7888af31d1db2519ce17d5b30baf5270002 (patch)
treee7f9e48dd4967417b2c83ac8ddaab4178a6b1968 /bin/isolated-functions.sh
parentRepoConfig: ignore missing name if no location (diff)
downloadportage-cff6e7888af31d1db2519ce17d5b30baf5270002.tar.gz
portage-cff6e7888af31d1db2519ce17d5b30baf5270002.tar.bz2
portage-cff6e7888af31d1db2519ce17d5b30baf5270002.zip
Invert has/hasq and use/useq implementations.
We need to migrate away from hasq and useq since they are deprecated (bug #199722).
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r--bin/isolated-functions.sh8
1 files changed, 4 insertions, 4 deletions
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 "* ]]
}