From 4240afc5163b3c9d6e4a2932fe555602a7db45f2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 23 Apr 2010 18:45:47 +0200 Subject: [PATCH] Only check distfiles once, not every time. --HG-- extra : convert_revision : 6e3a5e715aea21956395018360cae66b8f211d67 --- xbps-src/shutils/fetch_funcs.sh | 3 +++ xbps-src/shutils/tmpl_funcs.sh | 1 + 2 files changed, 4 insertions(+) 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"