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