xbps-src: only use /cachedir in chroot, if it was set in conffile.

This commit is contained in:
Juan RP 2011-06-29 09:35:36 +02:00
parent 1b147a730e
commit 5535e59afc
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,6 @@ XBPS_MASTERDIR=/
XBPS_CFLAGS="$XBPS_CFLAGS"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_LDFLAGS="$XBPS_LDFLAGS"
XBPS_CACHEDIR=/cachedir
XBPS_FETCH_CMD="xbps-uhelper.static fetch"
XBPS_COMPRESS_CMD="$XBPS_COMPRESS_CMD"
_EOF
@ -91,6 +90,9 @@ fi
if [ -n "$XBPS_COMPRESS_LEVEL" ]; then
echo "XBPS_COMPRESS_LEVEL=$XBPS_COMPRESS_LEVEL" >> $XBPSSRC_CF
fi
if [ -n "$XBPS_CACHEDIR" ]; then
echo "XBPS_CACHEDIR=/cachedir" >> $XBPSSRC_CF
fi
echo "# End of configuration file." >> $XBPSSRC_CF