shutils/extract_func.sh: check that distfiles are there.

--HG--
extra : convert_revision : 210dd5e1204adcd5c1eee91af76000c1e08d5039
This commit is contained in:
Juan RP 2010-04-18 18:50:43 +02:00
parent e89b8676a0
commit c95a77a60c

View File

@ -59,6 +59,14 @@ extract_distfiles()
return 0
fi
# Check that distfiles are there before anything else.
for f in ${distfiles}; do
curfile=$(basename $f)
if [ ! -f ${XBPS_SRCDISTDIR}/${curfile} ]; then
msg_error "cannot find ${curfile}, use 'xbps-src fetch' first."
fi
done
if [ -n "$create_wrksrc" ]; then
mkdir -p ${wrksrc} || return 1
fi