diff --git a/utils/sh/extract_funcs.sh b/utils/sh/extract_funcs.sh index 8d7feb5eb50..a952c21a74e 100644 --- a/utils/sh/extract_funcs.sh +++ b/utils/sh/extract_funcs.sh @@ -38,7 +38,7 @@ extract_distfiles() local f= [ -f $XBPS_EXTRACT_DONE ] && return 0 - [ ! -O $XBPS_BUILDDIR ] && \ + [ -z "$in_chroot" -a ! -O $XBPS_BUILDDIR ] && \ msg_error "can't extract distfile(s) (permission denied)" #