Due to the changes introduced in https://github.com/rancher/charts-build-scripts/pull/64, we now have tgz files within tgz files, which was previously unexpected. Therefore, when CompareTgz (used to see whether an archive is up to date by deep comparing the contents) encounters a tgz or tar file, we need to recursively apply the same logic to compare the internal tgz or tar file.
Due to the changes introduced in https://github.com/rancher/charts-build-scripts/pull/64, we now have tgz files within tgz files, which was previously unexpected. Therefore, when CompareTgz (used to see whether an archive is up to date by deep comparing the contents) encounters a tgz or tar file, we need to recursively apply the same logic to compare the internal tgz or tar file.