pin sha for macos packages (#9001)

This commit is contained in:
sergei-pyshnoi
2023-12-15 11:28:17 +01:00
committed by GitHub
parent eed37c2c66
commit 62536f12ed
5 changed files with 37 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ echo "Installing Python Tooling"
if is_Monterey || is_BigSur; then
echo "Install latest Python 2"
python2_pkg=$(download_with_retry "https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg")
python2_pkg_sha256="c570f38b05dd8b112ad21b418cdf51a9816d62f9f44746452739d421be24d50c"
use_checksum_comparison "$python2_pkg" "$python2_pkg_sha256"
choice_changes_xml=$(mktemp /tmp/python2_choice_changes.xml.XXXXXX)
sudo installer -showChoiceChangesXML -pkg "$python2_pkg" -target / | tee "$choice_changes_xml" > /dev/null