diff options
author | 2010-10-17 21:36:18 +0000 | |
---|---|---|
committer | 2010-10-17 21:36:18 +0000 | |
commit | 1f3d4dd15f72d75334dcd26661375ef300a76221 (patch) | |
tree | f82887cce7165a638359993c42f31a2b4e218b11 /eclass/tests | |
parent | path_exists: new function for checking existence of multiple paths (diff) | |
download | gentoo-2-1f3d4dd15f72d75334dcd26661375ef300a76221.tar.gz gentoo-2-1f3d4dd15f72d75334dcd26661375ef300a76221.tar.bz2 gentoo-2-1f3d4dd15f72d75334dcd26661375ef300a76221.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 "$@"; } |