Only check distfiles once, not every time.

--HG--
extra : convert_revision : 6e3a5e715aea21956395018360cae66b8f211d67
This commit is contained in:
Juan RP 2010-04-23 18:45:47 +02:00
parent 0d646e2ee9
commit 4240afc516
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,8 @@ fetch_distfiles()
# #
[ "$build_style" = "meta-template" ] && return 0 [ "$build_style" = "meta-template" ] && return 0
[ -f "$XBPS_FETCH_DONE" ] && return 0
# #
# If nofetch is set in a build template, skip this phase # If nofetch is set in a build template, skip this phase
# entirely and run the do_fetch() function. # entirely and run the do_fetch() function.
@ -144,4 +146,5 @@ fetch_distfiles()
done done
unset cksum found unset cksum found
touch -f $XBPS_FETCH_DONE
} }

View File

@ -227,6 +227,7 @@ prepare_tmpl()
[ -z "$wrksrc" ] && wrksrc="$pkgname-$version" [ -z "$wrksrc" ] && wrksrc="$pkgname-$version"
wrksrc="$XBPS_BUILDDIR/$wrksrc" wrksrc="$XBPS_BUILDDIR/$wrksrc"
XBPS_FETCH_DONE="$wrksrc/.xbps_fetch_done"
XBPS_EXTRACT_DONE="$wrksrc/.xbps_extract_done" XBPS_EXTRACT_DONE="$wrksrc/.xbps_extract_done"
XBPS_APPLYPATCHES_DONE="$wrksrc/.xbps_applypatches_done" XBPS_APPLYPATCHES_DONE="$wrksrc/.xbps_applypatches_done"
XBPS_CONFIGURE_DONE="$wrksrc/.xbps_configure_done" XBPS_CONFIGURE_DONE="$wrksrc/.xbps_configure_done"