Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374791 | Differences between
and this patch

Collapse All | Expand All

(-)eclass/tests/tests-common.sh.orig (-2 / +10 lines)
Lines 27-31 Link Here
27
	debug-print "now in section ${*}"
27
	debug-print "now in section ${*}"
28
}
28
}
29
29
30
hasq() { [[ " ${*:2} " == *" $1 "* ]]; }
30
has() {
31
has() { hasq "$@"; }
31
	local needle=$1
32
	shift
33
34
	local x
35
	for x in "$@"; do
36
		[[ ${x} == ${needle} ]] && return 0
37
	done
38
	return 1
39
}

Return to bug 374791