diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-17 21:36:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-17 21:36:18 +0000 |
commit | 2526d30b50507ca54a03d9cfa32da140d08db95f (patch) | |
tree | e49a2211f62d0d5a1d1cadb4515bd704a14c5a0e /eclass/tests | |
parent | path_exists: new function for checking existence of multiple paths (diff) | |
download | historical-2526d30b50507ca54a03d9cfa32da140d08db95f.tar.gz historical-2526d30b50507ca54a03d9cfa32da140d08db95f.tar.bz2 historical-2526d30b50507ca54a03d9cfa32da140d08db95f.zip |
add has/hasq stubs as some eclass use these in global scope
Diffstat (limited to 'eclass/tests')
-rw-r--r-- | eclass/tests/tests-common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 "$@"; } |