xbps-src: avoid mkdir {build,dest}dir in /.

This commit is contained in:
Juan RP 2011-07-11 00:16:02 +02:00
parent 67eff1aea1
commit 89dec60e64

View file

@ -63,7 +63,11 @@ set_defvars()
for i in DESTDIR PACKAGESDIR BUILDDIR SRCDISTDIR; do for i in DESTDIR PACKAGESDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i" eval val="\$XBPS_$i"
[ ! -d "$val" ] && mkdir -p $val if [ ! -d "$val" ]; then
mdir=$(dirname $XBPS_MASTERDIR)
[ -z "$IN_CHROOT" -a "$mdir" = "/" ] && continue
mkdir -p $val
fi
done done
xver=$(xbps-bin.static -V|awk '{print $2}') xver=$(xbps-bin.static -V|awk '{print $2}')