From 0ffa09c1b4d5d850233c7ecb402ccceed4b87849 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 Jul 2011 21:27:56 +0200 Subject: [PATCH] xbps-src: don't exec do_fetch() multiple times on success. --- xbps-src/shutils/fetch_funcs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xbps-src/shutils/fetch_funcs.sh b/xbps-src/shutils/fetch_funcs.sh index af3ed8d050..93974d78b5 100644 --- a/xbps-src/shutils/fetch_funcs.sh +++ b/xbps-src/shutils/fetch_funcs.sh @@ -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