Lines 95-101
Link Here
|
95 |
repopath=$(get_repo_path "${repo}") || die -q "get_repo_path failed" |
95 |
repopath=$(get_repo_path "${repo}") || die -q "get_repo_path failed" |
96 |
# do a reverse lookup and find the arch associated with ${target} |
96 |
# do a reverse lookup and find the arch associated with ${target} |
97 |
parch=$(sed -n -e \ |
97 |
parch=$(sed -n -e \ |
98 |
"s|^\([[:alnum:]]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \ |
98 |
"s|^\([[:alnum:]\-]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \ |
99 |
"${repopath}/profiles/profiles.desc") |
99 |
"${repopath}/profiles/profiles.desc") |
100 |
[[ ${arch} != "${parch}" && -z ${force} ]] \ |
100 |
[[ ${arch} != "${parch}" && -z ${force} ]] \ |
101 |
&& die -q "${target} is not a valid profile for ${arch}" |
101 |
&& die -q "${target} is not a valid profile for ${arch}" |