xbps-src: correctly cleanup masterdir/tmp (really)

previous commit led to
```
rm: refusing to remove '.' or '..' directory: skipping 'void-packages/masterdir/tmp/.'
rm: refusing to remove '.' or '..' directory: skipping 'void-packages/masterdir/tmp/..'
```
This commit is contained in:
Piraty 2020-02-26 19:03:13 +01:00
parent 3ad00b7932
commit c84e307c68
1 changed files with 3 additions and 2 deletions

View File

@ -737,8 +737,9 @@ case "$XBPS_TARGET" in
[ -d "$XBPS_BUILDDIR" ] && chmod -R +wX $XBPS_BUILDDIR
rm -rf \
$XBPS_BUILDDIR \
$XBPS_DESTDIR \
$XBPS_MASTERDIR/tmp/* $XBPS_MASTERDIR/tmp/.*
$XBPS_DESTDIR
rm -rf $XBPS_MASTERDIR/tmp
mkdir -p $XBPS_MASTERDIR/tmp
else
read_pkg
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then