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 <james.gauld@windriver.com>
This commit is contained in:
Jim Gauld 2020-06-02 12:04:04 -04:00
parent 44a8a1d798
commit 572ffec838
1 changed files with 7 additions and 0 deletions

View File

@ -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"