From 2526d30b50507ca54a03d9cfa32da140d08db95f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 17 Oct 2010 21:36:18 +0000 Subject: add has/hasq stubs as some eclass use these in global scope --- eclass/tests/tests-common.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass/tests') diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh index 8cd7d508b526..ba6f682f21c1 100644 --- a/eclass/tests/tests-common.sh +++ b/eclass/tests/tests-common.sh @@ -8,3 +8,6 @@ inherit() { source ../${e}.eclass done } + +hasq() { [[ " ${*:2} " == *" $1 "* ]]; } +has() { hasq "$@"; } -- cgit v1.2.3-65-gdbad