From af2f93cebc62cd0d6f7c4b1a74fdeb65fbcf90a8 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 13 Jun 2016 14:56:16 -0400 Subject: puppet-tripleo fork integration moving the github integration with pull requests into a function so we can continue to service opnfv-tht and also service opnfv-puppet-tripleo with the same code opnfv-puppet-tripleo-pr: 3 Change-Id: Ief2b1e7309defce9ed2029f6baade3c1371b7d96 Signed-off-by: Dan Radez --- build/cache.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build/cache.sh') diff --git a/build/cache.sh b/build/cache.sh index a88ffce1..123748a2 100644 --- a/build/cache.sh +++ b/build/cache.sh @@ -24,6 +24,10 @@ function cache_git_tar { # $1 = download url # $2 = filename to write to function curl_file { + if [ -f $CACHE_DIR/$2 ]; then + echo "Removing stale $2" + rm -f $CACHE_DIR/$2 + fi echo "Downloading $1" echo "Cache download location: $CACHE_DIR/$2" until curl -C- -L -o $CACHE_DIR/$2 $1 || (( count++ >= 20 )); do -- cgit 1.2.3-korg