--- ORIG-profile.eselect 2008-11-23 22:08:02.000000000 +0100 +++ profile.eselect 2008-11-23 22:09:12.000000000 +0100 @@ -45,11 +45,11 @@ # double check and make sure it's valid arch=$(arch) [[ -z "${arch}" && ${2} != "--force" ]] && return 1 # do a reverse lookup and find the arch associated with ${target} - parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}.*$|\1|p" \ + parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \ ${ROOT}/${portdir}/profiles/profiles.desc) if [[ ${arch} != ${parch} && ${2} != "--force" ]] ; then die -q "${target} is not a valid profile for ${arch}" fi