From 572ffec838388bd603b059324ef468dc859f1b6f Mon Sep 17 00:00:00 2001 From: Jim Gauld Date: Tue, 2 Jun 2020 12:04:04 -0400 Subject: [PATCH] Special handling of chartmuseum binary download This enables chartmuseum binary v0.12.0 as a download target instead of expecting a tarball. This is looking for the specific tarball-dl.lst entry !chartmuseum-v0.12.0-amd64 . The chartmuseum binary is required to build helm charts. Change-Id: Iae7f3543313894310c85f6c55bb6d8f58cfb71ae Story: 2007000 Task: 38893 Signed-off-by: Jim Gauld --- centos-mirror-tools/dl_tarball.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/centos-mirror-tools/dl_tarball.sh b/centos-mirror-tools/dl_tarball.sh index 0873d015..79b5c6d0 100755 --- a/centos-mirror-tools/dl_tarball.sh +++ b/centos-mirror-tools/dl_tarball.sh @@ -290,6 +290,13 @@ for line in $(cat $tarball_file); do tar czvf $tarball_name $directory_name rm -rf $directory_name popd > /dev/null # pushd $directory_name + elif [[ "$tarball_name" = 'chartmuseum-v0.12.0-amd64' ]]; then + wget -q -t 5 --wait=15 -O "$tarball_name" "$tarball_url" + if [ $? -ne 0 ]; then + error_count=$((error_count + 1)) + popd > /dev/null # pushd $output_tarball + continue + fi elif [[ "$tarball_name" = 'MLNX_OFED_SRC-4.7-3.2.9.0.tgz' ]]; then srpm_path="${directory_name}/SRPMS/" download_package "$tarball_name" "$tarball_url"