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

@ -38,6 +38,10 @@ prepare_confs() {
echo "cflags: -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" >> \
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