xbps-src: avoid mkdir {build,dest}dir in /.
This commit is contained in:
parent
67eff1aea1
commit
89dec60e64
1 changed files with 5 additions and 1 deletions
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue