xbps-src: don't exec do_fetch() multiple times on success.

This commit is contained in:
Juan RP 2011-07-04 21:27:56 +02:00
parent bc1c29747b
commit 0ffa09c1b4

View file

@ -70,7 +70,11 @@ fetch_distfiles()
fi fi
if [ -n "$nofetch" ]; then if [ -n "$nofetch" ]; then
cd ${XBPS_BUILDDIR} && run_func do_fetch && return $? cd ${XBPS_BUILDDIR}
[ -n "$build_wrksrc" ] && mkdir -p "$wrksrc"
run_func do_fetch
touch -f $XBPS_FETCH_DONE
return 0
fi fi
cd $XBPS_SRCDISTDIR || return 1 cd $XBPS_SRCDISTDIR || return 1