tools-musl: fix when portage_confdir is missing.

This commit is contained in:
Anthony G. Basile 2015-06-14 17:03:31 -04:00
parent 124152fc5c
commit 7639bead24
6 changed files with 25 additions and 1 deletions

View file

@ -27,6 +27,11 @@ prepare_confs() {
-e "s:FLAVOR:${flavor}:g" \
-e "s:MYCATALYST:$(pwd):g" \
> stage${s}-${arch}-musl-${flavor}.conf
portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
| sed -e 's/^.*://')
[[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
stage${s}-${arch}-musl-${flavor}.conf
done
sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf