common/xbps-src/shutils/chroot.sh: configure locale also when using -t.

This commit is contained in:
Leah Neukirchen 2018-02-20 15:35:35 +01:00
parent 1fafbe5e80
commit 699d070492

View file

@ -108,7 +108,7 @@ chroot_prepare() {
ln -sf /dev/null $XBPS_MASTERDIR/etc/xbps.d/00-repository-main.conf
# Prepare default locale: en_US.UTF-8.
if [ -z "$XBPS_TEMP_MASTERDIR" -a -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then
if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then
echo 'en_US.UTF-8 UTF-8' >> ${XBPS_MASTERDIR}/etc/default/libc-locales
fi