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
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ set_defvars()
for i in DESTDIR PACKAGESDIR BUILDDIR SRCDISTDIR; do
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
xver=$(xbps-bin.static -V|awk '{print $2}')