xbps-src/chroot: disable xbps/repo.d/00-main.conf with a symlink; rather than removing the file.

This commit is contained in:
Juan RP 2014-08-21 11:42:51 +02:00
parent 36a2be41b1
commit 954e1aff05
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ chroot_prepare() {
echo "syslog=false" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
echo "cachedir=/host/repocache" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
rm -f $XBPS_MASTERDIR/usr/share/xbps/repo.d/*.conf
mkdir -p $XBPS_MASTERDIR/etc/xbps/repo.d
ln -s /dev/null $XBPS_MASTERDIR/etc/xbps/repo.d/00-main.conf
# Prepare default locale: en_US.UTF-8.
if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then