summaryrefslogtreecommitdiffstats
path: root/build/cache.sh
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-06-14 12:53:42 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-14 12:53:42 +0000
commit0a85539980ec943f3e590dd279d1a129fb7966c3 (patch)
tree69b2d86536ded4c88cf723194276b4d8869dcabc /build/cache.sh
parent2af53674aec6188abbc73b066c5942d4aea9e043 (diff)
parentaf2f93cebc62cd0d6f7c4b1a74fdeb65fbcf90a8 (diff)
Merge "puppet-tripleo fork integration"
Diffstat (limited to 'build/cache.sh')
-rw-r--r--build/cache.sh4
1 files changed, 4 insertions, 0 deletions
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