From feda36b6589aaf535159cf09336105bc92515279 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Tue, 23 Aug 2016 16:32:53 +0800 Subject: [PATCH] fix apt-download --- helpers/apt-download | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/apt-download b/helpers/apt-download index 9d8f9d2..7f6bab7 100644 --- a/helpers/apt-download +++ b/helpers/apt-download @@ -138,6 +138,8 @@ function apt-download-binary() { echo "Skipping ${pkg_filename}, size ${pkg_size}" fi fi + [[ $downloaded == true ]] && continue + for retry in `seq ${MAX_RETRY}`; do echo "downloading ${pkg_url} to ${dest_filename}" if [[ -z ${APT_DRY_RUN:-} ]]; then