diff --git a/xbps-src/shutils/fetch_funcs.sh b/xbps-src/shutils/fetch_funcs.sh index 1667600cf4c..334def30ac2 100644 --- a/xbps-src/shutils/fetch_funcs.sh +++ b/xbps-src/shutils/fetch_funcs.sh @@ -62,6 +62,8 @@ fetch_distfiles() # [ "$build_style" = "meta-template" ] && return 0 + [ -f "$XBPS_FETCH_DONE" ] && return 0 + # # If nofetch is set in a build template, skip this phase # entirely and run the do_fetch() function. @@ -144,4 +146,5 @@ fetch_distfiles() done unset cksum found + touch -f $XBPS_FETCH_DONE } diff --git a/xbps-src/shutils/tmpl_funcs.sh b/xbps-src/shutils/tmpl_funcs.sh index 31f9d410bc1..6a178959af8 100644 --- a/xbps-src/shutils/tmpl_funcs.sh +++ b/xbps-src/shutils/tmpl_funcs.sh @@ -227,6 +227,7 @@ prepare_tmpl() [ -z "$wrksrc" ] && wrksrc="$pkgname-$version" wrksrc="$XBPS_BUILDDIR/$wrksrc" + XBPS_FETCH_DONE="$wrksrc/.xbps_fetch_done" XBPS_EXTRACT_DONE="$wrksrc/.xbps_extract_done" XBPS_APPLYPATCHES_DONE="$wrksrc/.xbps_applypatches_done" XBPS_CONFIGURE_DONE="$wrksrc/.xbps_configure_done"