xbps-src: remove builddir properly in the clean target.

I've seen some go packages changing the permissions to
some directories, hence force them.
This commit is contained in:
Juan RP 2019-06-19 11:49:05 +02:00
parent 63333a159b
commit fab6617758
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368
1 changed files with 2 additions and 1 deletions

View File

@ -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