diff --git a/utils/sh/extract_funcs.sh b/utils/sh/extract_funcs.sh index 9b50375cfb9..8d7feb5eb50 100644 --- a/utils/sh/extract_funcs.sh +++ b/utils/sh/extract_funcs.sh @@ -38,6 +38,8 @@ extract_distfiles() local f= [ -f $XBPS_EXTRACT_DONE ] && return 0 + [ ! -O $XBPS_BUILDDIR ] && \ + msg_error "can't extract distfile(s) (permission denied)" # # If we are being called via the target, just extract and return.