From 82c7122a15b9579c138ab387059fcd5e17579c96 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 17 Mar 2023 09:35:32 +0100 Subject: [PATCH] sdk_lib: Use curl for downloading SDK tarballs This seems to be the only place where we are using wget for downloading anything - all other places use curl. Thus switch to curl here too. This also makes the job output much shorter as previously it was spammed with progress reporting. --- sdk_lib/sdk_util.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk_lib/sdk_util.sh b/sdk_lib/sdk_util.sh index 61185d499b..b93881b9f8 100644 --- a/sdk_lib/sdk_util.sh +++ b/sdk_lib/sdk_util.sh @@ -30,9 +30,9 @@ sdk_download_tarball() { info "URL: ${url}" for suffix in "${suffixes[@]}"; do # If all downloads fail, we will detect it later. - if ! wget --tries=3 --timeout=30 --continue \ - -O "${FLATCAR_SDK_TARBALL_PATH}${suffix}" \ - "${url}${suffix}"; then + if ! curl --fail --silent --show-error --location --retry-delay 1 --retry 60 \ + --retry-connrefused --retry-max-time 60 --connect-timeout 20 \ + --output "${FLATCAR_SDK_TARBALL_PATH}${suffix}" "${url}${suffix}"; then break fi done