Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 139629
Collapse All | Expand All

(-)compiler.eselect.in (-8 / +9 lines)
Lines 27-40 Link Here
27
### Helpers ###
27
### Helpers ###
28
28
29
eval_pm() {
29
eval_pm() {
30
	local tmp=$(mktemp -t tmp.XXXXXX)
30
	while read line; do
31
	local retval
31
		[[ ${line} =~ "^profile-manager error:" ]] &&
32
32
			die "${line}"
33
	${PROFILE_MANAGER} --config-dir="${CONFIG_D}" "${@}" > ${tmp}
33
		[[ ${line} =~ "^[A-Za-z0-9_]*=" ]] ||
34
	retval=${?}
34
			die "Unexpected result from profile-manager: ${line}"
35
	source ${tmp}
35
		export "${line//\"}"
36
	rm -f ${tmp}
36
	done <<-EOF
37
	return ${retval}
37
	$(${PROFILE_MANAGER} --config-dir="${CONFIG_D}" "${@}" 2>&1)
38
	EOF
38
}
39
}
39
40
40
list_all_profiles() {
41
list_all_profiles() {

Return to bug 139629