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
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ fetch_distfiles()
fi
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
cd $XBPS_SRCDISTDIR || return 1