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

(-)ORIG-profile.eselect (-1 / +1 lines)
Lines 45-55 Link Here
45
		# double check and make sure it's valid
45
		# double check and make sure it's valid
46
		arch=$(arch)
46
		arch=$(arch)
47
		[[ -z "${arch}" && ${2} != "--force" ]] && return 1
47
		[[ -z "${arch}" && ${2} != "--force" ]] && return 1
48
48
49
		# do a reverse lookup and find the arch associated with ${target}
49
		# do a reverse lookup and find the arch associated with ${target}
50
		parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}.*$|\1|p" \
50
		parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \
51
			${ROOT}/${portdir}/profiles/profiles.desc)
51
			${ROOT}/${portdir}/profiles/profiles.desc)
52
52
53
		if [[ ${arch} != ${parch} && ${2} != "--force" ]] ; then
53
		if [[ ${arch} != ${parch} && ${2} != "--force" ]] ; then
54
			die -q "${target} is not a valid profile for ${arch}"
54
			die -q "${target} is not a valid profile for ${arch}"
55
		fi
55
		fi

Return to bug 248470