Add exception for helm2to3 tarball

Helm plugin 2to3 needs to be installed to upgrade apps to FluxCD.

The plugin tarball must be added to the exceptions of dl_tarball as
the script by default untars with `--strip-components 1`, thus removing
the plugin binary before recompressing

Story: 2009138
Task: 45584
Signed-off-by: Lucas Cavalcante <lucasmedeiros.cavalcante@windriver.com>
Change-Id: I19b541500fd0872660c98e2f20baccf3f52c77da
This commit is contained in:
Lucas Cavalcante 2022-06-09 11:04:41 -03:00
parent 910cc78586
commit 8bb657f605
1 changed files with 7 additions and 0 deletions

View File

@ -299,6 +299,13 @@ for line in $(cat $tarball_file); do
popd > /dev/null # pushd $output_tarball
continue
fi
elif [[ "$tarball_name" = "helm-2to3-0.10.0.tar.gz" ]]; then
download_file --quiet "$tarball_url" "$tarball_name"
if [ $? -ne 0 ]; then
error_count=$((error_count + 1))
popd > /dev/null # pushd $output_tarball
continue
fi
elif [[ "$tarball_name" = 'OPAE_1.3.7-5_el7.zip' ]]; then
srpm_path="${directory_name}/source_code/"
download_file --quiet "$tarball_url" "$tarball_name"