From fab661775821144aaee6bbc5e580522920f3ae27 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 19 Jun 2019 11:49:05 +0200 Subject: [PATCH] xbps-src: remove builddir properly in the clean target. I've seen some go packages changing the permissions to some directories, hence force them. --- xbps-src | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index 65c45ada56d..91ab57850eb 100755 --- a/xbps-src +++ b/xbps-src @@ -716,7 +716,8 @@ case "$XBPS_TARGET" in remove_pkg_autodeps fi msg_normal "xbps-src: cleaning up masterdir...\n" - chmod -R +wX $XBPS_MASTERDIR/builddir # Needed to remove Go Modules + # Needed to remove Go Modules + [ -d $XBPS_MASTERDIR/builddir ] && chmod -R +wX $XBPS_MASTERDIR/builddir rm -rf $XBPS_MASTERDIR/builddir $XBPS_MASTERDIR/destdir rm -f $XBPS_MASTERDIR/tmp/* >/dev/null 2>&1 else