summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-17 21:36:18 +0000
committerMike Frysinger <vapier@gentoo.org>2010-10-17 21:36:18 +0000
commit1f3d4dd15f72d75334dcd26661375ef300a76221 (patch)
treef82887cce7165a638359993c42f31a2b4e218b11 /eclass
parentpath_exists: new function for checking existence of multiple paths (diff)
downloadgentoo-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')
-rw-r--r--eclass/tests/tests-common.sh3
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 "$@"; }