From c84e307c688962fc5e28a40fad8d9a2f241f24c8 Mon Sep 17 00:00:00 2001 From: Piraty Date: Wed, 26 Feb 2020 19:03:13 +0100 Subject: [PATCH] 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/..' ``` --- xbps-src | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xbps-src b/xbps-src index cbe4c73b90d..e202e34b3d7 100755 --- a/xbps-src +++ b/xbps-src @@ -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