diff --git a/.evergreen/download-mongodb.sh b/.evergreen/download-mongodb.sh index f7abce55..98c839e8 100755 --- a/.evergreen/download-mongodb.sh +++ b/.evergreen/download-mongodb.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # shellcheck shell=sh -#For future use the feed to get full list of distros : http://downloads.mongodb.org/full.json +# For future use the feed to get full list of distros : http://downloads.mongodb.org/full.json set -o errexit # Exit the script with error if any of the commands fail @@ -56,523 +56,34 @@ get_mongodb_download_url_for () _VERSION=$2 _DEBUG=$3 - # Set VERSION_RAPID to the latest rapid release each quarter. - VERSION_RAPID="7.3.4" - VERSION_80="8.0.1" - VERSION_70="7.0.15-rc1" - VERSION_60="6.0.18" - VERSION_50="5.0.29" - - # This version is used for performance benchmarking. Do not update to a newer version - VERSION_60_PERF="6.0.6" - - # EOL versions - VERSION_44="4.4.29" - VERSION_42="4.2.25" - VERSION_40="4.0.28" - VERSION_36="3.6.23" - VERSION_34="3.4.24" - VERSION_32="3.2.22" - VERSION_30="3.0.15" - VERSION_26="2.6.12" - VERSION_24="2.4.14" - EXTRACT="tar zxf" EXTRACT_MONGOSH=$EXTRACT case "$_DEBUG" in true) - DEBUG="-debugsymbols" + _component="archive-debug" ;; *) - DEBUG="" + _component="archive" ;; esac - # getdata matrix on: - # https://evergreen.mongodb.com/version/5797f0493ff12235e5001f05 case "$_DISTRO" in - darwin--arm64) - EXTRACT_MONGOSH="unzip -q" - MONGODB_LATEST="http://downloads.10gen.com/osx/mongodb-macos-arm64-enterprise${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/osx/mongodb-macos-arm64-enterprise${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/osx/mongodb-macos-arm64-enterprise${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/osx/mongodb-macos-arm64-enterprise${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/osx/mongodb-macos-arm64-enterprise${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_24}.tgz" - ;; - darwin--x86_64) + darwin-*) EXTRACT_MONGOSH="unzip -q" - MONGODB_LATEST="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/osx/mongodb-macos-x86_64-enterprise${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/osx/mongodb-osx-x86_64-enterprise${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64${DEBUG}-${VERSION_24}.tgz" - ;; - sunos*i86pc) - MONGODB_LATEST="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-latest.tgz" - MONGODB_34="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-3.4.5.tgz" - MONGODB_32="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-3.2.14.tgz" - MONGODB_30="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64${DEBUG}-${VERSION_24}.tgz" - ;; - linux-rhel-9*-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel93${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel90${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel93${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel90${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel90${DEBUG}-${VERSION_60}.tgz" - ;; - linux-rhel-9*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel93${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel90${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel93${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel90${DEBUG}-${VERSION_70}.tgz" - MONGODB_60_PERF="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel90${DEBUG}-${VERSION_60_PERF}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel90${DEBUG}-${VERSION_60}.tgz" - ;; - linux-rhel-8*-ppc64le) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel81${DEBUG}-${VERSION_42}.tgz" - ;; - linux-rhel-8*-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel83${DEBUG}-${VERSION_50}.tgz" - # SERVER-44074 Added support for RHEL 8 (zSeries) in 5.0.8 and 6.0.0-rc0. - ;; - linux-rhel-8*-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel8${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-rhel82${DEBUG}-${VERSION_44}.tgz" - # SERVER-48282 Added support for RHEL 8 ARM in 4.4.2. - ;; - linux-rhel-8*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel8${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel80${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel80${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel80${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel80${DEBUG}-${VERSION_36}.tgz" - ;; - linux-rhel-7*-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${MONGODB_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-3.6.4.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72${DEBUG}-3.4.14.tgz" - ;; - linux-rhel-7*-ppc64le) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-latest.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-rhel71${DEBUG}-${VERSION_32}.tgz" - ;; - linux-rhel-7.*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel70${DEBUG}-${VERSION_26}.tgz" - ;; - linux-rhel-6*-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-latest.tgz" - # SERVER-53726 removed support for s390x (zSeries) on RHEL6. - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-4.4.6.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-4.2.18.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-4.0.28.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel67${DEBUG}-${VERSION_34}.tgz" - ;; - linux-rhel-6.2*|linux-centos-6*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-latest.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-rhel62${DEBUG}-${VERSION_24}.tgz" - ;; - linux-rhel-5.5*) - MONGODB_LATEST="http://downloads.mongodb.org/linux/mongodb-linux-x86_64-rhel55${DEBUG}-latest.tgz" - MONGODB_32="http://downloads.mongodb.org/linux/mongodb-linux-x86_64-rhel55${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.mongodb.org/linux/mongodb-linux-x86_64-rhel55${DEBUG}-${VERSION_30}.tgz" - ;; - linux-sles-15.1-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse15${DEBUG}-${VERSION_50}.tgz" - ;; - linux-sles-12*-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-latest.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-3.6.3.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-suse12${DEBUG}-3.4.13.tgz" - ;; - linux-sles-12*-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse12${DEBUG}-${VERSION_32}.tgz" - ;; - linux-sles-11*-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-latest.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-suse11${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-suse11${DEBUG}-${VERSION_24}.tgz" - ;; - linux-amzn-2023-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2023${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2023${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2023${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2023${DEBUG}-${VERSION_70}.tgz" - ;; - linux-amzn-2023-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2023${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2023${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2023${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2023${DEBUG}-${VERSION_70}.tgz" - ;; - linux-amzn-2018*-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_RAPID}.tgz" - # SERVER-50564 Removed support for Amazon Linux (v1) in 6.0.0-rc1. - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-6.0.0-rc0.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amzn64${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-amzn64${DEBUG}-${VERSION_24}.tgz" - ;; - linux-amzn-2-x86_64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-amazon2${DEBUG}-${VERSION_40}.tgz" - ;; - linux-amzn-2-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-amazon2${DEBUG}-${VERSION_42}.tgz" - ;; - linux-debian-12*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian12${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian12${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian12${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian12${DEBUG}-${VERSION_70}.tgz" - ;; - linux-debian-11*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian11${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian11${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian11${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian11${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian11${DEBUG}-${VERSION_50}.tgz" - # SERVER-62299 Added support for Debian 11 in 5.0.8 and 6.0.0-rc0 - ;; - linux-debian-10*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian10${DEBUG}-${VERSION_42}.tgz" - ;; - linux-debian-9*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-latest.tgz" - # SERVER-62308 Removed support for Debian 9 in server version 6.0.0-rc5. - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92${DEBUG}-${VERSION_36}.tgz" - ;; - linux-debian-8*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian81${DEBUG}-latest.tgz" - # SERVER-37767 Removed support for Debian 8 - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian81${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian81${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian81${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian81${DEBUG}-${VERSION_32}.tgz" - ;; - linux-debian-7*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-latest.tgz" - # SERVER-32999 removed support for Debian 7. - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-3.6.5.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-3.4.15.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-3.2.20.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian71${DEBUG}-${VERSION_26}.tgz" - ;; - linux-ubuntu-24.04-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2404${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2404${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2404${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2404${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2404${DEBUG}-${VERSION_60}.tgz" - ;; - linux-ubuntu-24.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2404${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2404${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2404${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2404${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2404${DEBUG}-${VERSION_60}.tgz" - ;; - linux-ubuntu-22.04-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2204${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2204${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2204${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2204${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2204${DEBUG}-${VERSION_60}.tgz" - # SERVER-62301 Added support for Ubuntu 22.04 in 6.0.3 - ;; - linux-ubuntu-22.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2204${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2204${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2204${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2204${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2204${DEBUG}-${VERSION_60}.tgz" - # SERVER-62300 Added support for Ubuntu 22.04 in 6.0.4 - ;; - linux-ubuntu-20.04-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu2004${DEBUG}-${VERSION_44}.tgz" ;; - linux-ubuntu-20.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_80="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_80}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu2004${DEBUG}-${VERSION_44}.tgz" - ;; - linux-ubuntu-18.04-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1804${DEBUG}-latest.tgz" - # SERVER-32999 removed support for s390x (zSeries) on Ubuntu 18.04. - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1804${DEBUG}-4.4.6.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1804${DEBUG}-4.2.14.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1804${DEBUG}-4.0.25.tgz" - ;; - linux-ubuntu-18.04-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1804${DEBUG}-${VERSION_42}.tgz" - ;; - linux-ubuntu-18.04-ppc64le) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1804${DEBUG}-latest.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1804${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1804${DEBUG}-${VERSION_42}.tgz" - ;; - linux-ubuntu-18.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-latest.tgz" - MONGODB_RAPID="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_RAPID}.tgz" - MONGODB_70="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_70}.tgz" - MONGODB_60="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_60}.tgz" - MONGODB_50="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_50}.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804${DEBUG}-${VERSION_36}.tgz" - ;; - linux-ubuntu-16.04-s390x) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1604${DEBUG}-latest.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1604${DEBUG}-v4.0-latest.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1604${DEBUG}-3.6.4.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-ubuntu1604${DEBUG}-3.4.14.tgz" - ;; - linux-ubuntu-16.04-ppc64le) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1604${DEBUG}-latest.tgz" - # SERVER-37774 Removed support for Ubuntu 16.04 PPCLE - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1604${DEBUG}-4.0.9.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1604${DEBUG}-3.6.12.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-ubuntu1604${DEBUG}-3.4.20.tgz" - ;; - linux-ubuntu-16.04-aarch64) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1604${DEBUG}-latest.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1604${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-aarch64-enterprise-ubuntu1604${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-arm64-enterprise-ubuntu1604${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-arm64-enterprise-ubuntu1604${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-arm64-enterprise-ubuntu1604${DEBUG}-${VERSION_34}.tgz" - ;; - linux-ubuntu-16.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-latest.tgz" - MONGODB_44="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_44}.tgz" - MONGODB_42="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_42}.tgz" - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_40}.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_36}.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_34}.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1604${DEBUG}-${VERSION_32}.tgz" - ;; - linux-ubuntu-14.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-latest.tgz" - # SERVER-37765 Removed support for Ubuntu 14.04 - MONGODB_40="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-4.0.9.tgz" - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-3.6.12.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-3.4.20.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-${VERSION_32}.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1404${DEBUG}-${VERSION_26}.tgz" - ;; - linux-ubuntu-12.04*) - MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-latest.tgz" - # SERVER-31535 removed support for Ubuntu 12. - MONGODB_36="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-3.6.3.tgz" - MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-3.4.14.tgz" - MONGODB_32="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-3.2.19.tgz" - MONGODB_30="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-${VERSION_30}.tgz" - MONGODB_26="http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1204${DEBUG}-${VERSION_26}.tgz" - MONGODB_24="http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-ubuntu1204${DEBUG}-${VERSION_24}.tgz" - ;; - windows32*) + windows32* | cygwin*-i686) EXTRACT="/cygdrive/c/Progra~1/7-Zip/7z.exe x" EXTRACT_MONGOSH="/cygdrive/c/Progra~1/7-Zip/7z.exe x" - set_url_win32 - ;; - cygwin*-i686) - EXTRACT="/cygdrive/c/Progra~1/7-Zip/7z.exe x" - EXTRACT_MONGOSH="/cygdrive/c/Progra~1/7-Zip/7z.exe x" - set_url_win32 ;; - windows64*) + windows64* | cygwin*-x86_64) EXTRACT="/cygdrive/c/Progra~2/7-Zip/7z.exe x" EXTRACT_MONGOSH="/cygdrive/c/Progra~2/7-Zip/7z.exe x" - set_url_win64 - ;; - cygwin*-x86_64) - EXTRACT="/cygdrive/c/Progra~2/7-Zip/7z.exe x" - EXTRACT_MONGOSH="/cygdrive/c/Progra~2/7-Zip/7z.exe x" - set_url_win64 ;; # Windows on GitHub Actions mingw64_nt-*-x86_64) EXTRACT="7z.exe x" EXTRACT_MONGOSH="7z.exe x" - set_url_win64 - ;; - esac - - # Fallback to generic Linux x86_64 builds (without SSL) when no platform specific link is available. - case "$_DISTRO" in - *linux*x86_64) - MONGODB_LATEST=${MONGODB_LATEST:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-latest.tgz"} - # SERVER-37316 Removed support for generic linux builds. - MONGODB_42=${MONGODB_42:-""} - MONGODB_40=${MONGODB_40:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_40}.tgz"} - MONGODB_36=${MONGODB_36:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_36}.tgz"} - MONGODB_34=${MONGODB_34:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_34}.tgz"} - MONGODB_32=${MONGODB_32:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_32}.tgz"} - MONGODB_30=${MONGODB_30:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_30}.tgz"} - MONGODB_26=${MONGODB_26:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_26}.tgz"} - MONGODB_24=${MONGODB_24:-"http://downloads.mongodb.org/linux/mongodb-linux-x86_64${DEBUG}-${VERSION_24}.tgz"} - ;; - esac - - # PYTHON-2238 On Archlinux MongoDB <= 3.2 requires LC_ALL=C. - case "$_DISTRO" in - linux-arch-*) - case "$_VERSION" in - 3.2) export LC_ALL=C ;; - 3.0) export LC_ALL=C ;; - 2.6) export LC_ALL=C ;; - 2.4) export LC_ALL=C ;; - esac ;; esac @@ -582,25 +93,8 @@ get_mongodb_download_url_for () _python3=$(bash -c ". $_script_dir/find-python3.sh && ensure_python3 2>/dev/null") MONGOSH_DOWNLOAD_URL=$($_python3 "${_script_dir}/mongosh-dl.py" --no-download | tr -d '\r') - case "$_VERSION" in - latest) MONGODB_DOWNLOAD_URL=$MONGODB_LATEST ;; - rapid) MONGODB_DOWNLOAD_URL=$MONGODB_RAPID ;; - 8.0) MONGODB_DOWNLOAD_URL=$MONGODB_80 ;; - 7.0) MONGODB_DOWNLOAD_URL=$MONGODB_70 ;; - v6.0-latest) MONGODB_DOWNLOAD_URL=$MONGODB_60_LATEST ;; - v6.0-perf) MONGODB_DOWNLOAD_URL=$MONGODB_60_PERF ;; - 6.0) MONGODB_DOWNLOAD_URL=$MONGODB_60 ;; - 5.0) MONGODB_DOWNLOAD_URL=$MONGODB_50 ;; - 4.4) MONGODB_DOWNLOAD_URL=$MONGODB_44 ;; - 4.2) MONGODB_DOWNLOAD_URL=$MONGODB_42 ;; - 4.0) MONGODB_DOWNLOAD_URL=$MONGODB_40 ;; - 3.6) MONGODB_DOWNLOAD_URL=$MONGODB_36 ;; - 3.4) MONGODB_DOWNLOAD_URL=$MONGODB_34 ;; - 3.2) MONGODB_DOWNLOAD_URL=$MONGODB_32 ;; - 3.0) MONGODB_DOWNLOAD_URL=$MONGODB_30 ;; - 2.6) MONGODB_DOWNLOAD_URL=$MONGODB_26 ;; - 2.4) MONGODB_DOWNLOAD_URL=$MONGODB_24 ;; - esac + # Get the download url for MongoDB for the given version. + MONGODB_DOWNLOAD_URL="$($_python3 "${_script_dir}/mongodl.py" --version $_VERSION --component $_component --no-download | tr -d '\r')" if [ -z "$MONGODB_DOWNLOAD_URL" ]; then echo "Unknown version: $_VERSION for $_DISTRO" @@ -612,61 +106,17 @@ get_mongodb_download_url_for () # Try to download a version of crypt_shared matching the server version. # If no matching version is available, try to download the latest Major release of crypt_shared. case "$_VERSION" in - latest) - # If latest is not at least 6.0 on this OS, the crypt_shared package will not be available. - if [ -n "$MONGODB_60" ] || [ -n "$MONGODB_70" ] || [ -n "$MONGODB_80" ]; then - MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_LATEST - fi ;; - rapid) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_RAPID ;; - 8.0) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_80 ;; - 7.0) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_70 ;; - v6.0-latest) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_60_LATEST ;; - v6.0-perf) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_60_PERF ;; - 6.0) MONGO_CRYPT_SHARED_DOWNLOAD_URL=$MONGODB_60 ;; - 5.0 | 4.4 | 4.2 | 4.0 | 3.6 | 3.4 | 3.2 | 3.0 | 2.6 | 2.4) + 5.0 | 4.4 | 4.2 | 4.0 | 3.6) # Default to using the latest Major release. Major releases are expected yearly. # MONGODB_60 may be empty if there is no 6.0 download available for this platform. - MONGO_CRYPT_SHARED_DOWNLOAD_URL="$MONGODB_60" - ;; - *) echo "Unknown version '$_VERSION'"; - exit 1; + _crypt_shared_version=latest ;; + *) + _crypt_shared_version=$_VERSION esac + MONGO_CRYPT_SHARED_DOWNLOAD_URL=$($_python3 "${_script_dir}/mongodl.py" --version $_crypt_shared_version --component crypt_shared --no-download | tr -d '\r') - if [ -n "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" ]; then - # The crypt_shared package is simply the same file URL with the "mongodb-" - # prefix replaced with "mongo_crypt_shared_v1-" - MONGO_CRYPT_SHARED_DOWNLOAD_URL="$(printf '%s' "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" | sed 's|/mongodb-|/mongo_crypt_shared_v1-|')" - fi - - echo $MONGODB_DOWNLOAD_URL -} - -set_url_win64 () -{ - MONGODB_LATEST="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-latest.zip" - MONGODB_RAPID="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_RAPID}.zip" - MONGODB_80="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_80}.zip" - MONGODB_70="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_70}.zip" - MONGODB_60="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_60}.zip" - MONGODB_50="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_50}.zip" - MONGODB_44="http://downloads.10gen.com/windows/mongodb-windows-x86_64-enterprise${DEBUG}-${VERSION_44}.zip" - MONGODB_42="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_42}.zip" - MONGODB_40="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_40}.zip" - MONGODB_36="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_36}.zip" - MONGODB_34="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_34}.zip" - MONGODB_32="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_32}.zip" - MONGODB_30="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_30}.zip" - MONGODB_26="http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64${DEBUG}-${VERSION_26}.zip" - MONGODB_24="https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus${DEBUG}-${VERSION_24}.zip" -} - -set_url_win32 () -{ - MONGODB_32="https://fastdl.mongodb.org/win32/mongodb-win32-i386${DEBUG}-${VERSION_32}.zip" - MONGODB_30="https://fastdl.mongodb.org/win32/mongodb-win32-i386${DEBUG}-${VERSION_30}.zip" - MONGODB_26="https://fastdl.mongodb.org/win32/mongodb-win32-i386${DEBUG}-${VERSION_26}.zip" - MONGODB_24="https://fastdl.mongodb.org/win32/mongodb-win32-i386${DEBUG}-${VERSION_24}.zip" + echo "$MONGODB_DOWNLOAD_URL" } # curl_retry emulates running curl with `--retry 5` and `--retry-all-errors`. @@ -691,7 +141,7 @@ download_and_extract_package () fi echo "Installing server binaries..." - curl_retry $MONGODB_DOWNLOAD_URL --output mongodb-binaries.tgz + curl_retry "$MONGODB_DOWNLOAD_URL" --output mongodb-binaries.tgz $EXTRACT mongodb-binaries.tgz echo "Installing server binaries... done." @@ -761,7 +211,7 @@ download_and_extract () # Use a subshell to avoid overwriting MONGODB_DOWNLOAD_URL and MONGO_CRYPT_SHARED_DOWNLOAD_URL. MONGODB50_DOWNLOAD_URL=$( get_mongodb_download_url_for "$DISTRO" "5.0" > /dev/null - echo $MONGODB_DOWNLOAD_URL + echo "$MONGODB_DOWNLOAD_URL" ) SAVED_DRIVERS_TOOLS=$DRIVERS_TOOLS diff --git a/.evergreen/mongodl.py b/.evergreen/mongodl.py index 6dd0e932..f3115998 100755 --- a/.evergreen/mongodl.py +++ b/.evergreen/mongodl.py @@ -35,9 +35,6 @@ from typing import (IO, TYPE_CHECKING, Any, Callable, Iterable, Iterator, Optional, NamedTuple, Sequence, cast) -# The named supported minor and major versions. -SUPPORTED_VERSIONS = ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "8.0"] - # These versions are used for performance benchmarking. Do not update to a newer version. PERF_VERSIONS = { "v6.0-perf": "6.0.6", @@ -387,16 +384,6 @@ def _import_json_data(self, data: 'Any') -> None: UNIQUE(key, download_id) ) ''') - # Inject supported versions - versions = dict(zip(SUPPORTED_VERSIONS, [None for _ in SUPPORTED_VERSIONS])) - for ver in data['versions']: - version = ver['version'] - key = version[:3] - if key in versions and versions[key] is None: - ver = ver.copy() - ver['version'] = key - versions[key] = ver - data['versions'].extend(versions.values()) for ver in data['versions']: version = ver['version'] @@ -468,9 +455,9 @@ def _import_json_data(self, data: 'Any') -> None: data=json.dumps(data), ) if missing: - print("Missing targets in DISTRO_ID_TO_TARGET:") + print("Missing targets in DISTRO_ID_TO_TARGET:", file=sys.stderr) for item in missing: - print(item) + print(f" - {item}", file=sys.stderr) if os.environ.get("VALIDATE_DISTROS") == "1": sys.exit(1) @@ -507,11 +494,12 @@ def iter_available( THEN mdb_version_rapid(version) WHEN :version IS NULL THEN 1 - ELSE version=:version + ELSE version=:version OR version LIKE :version_pattern END) ORDER BY version COLLATE mdb_version DESC ''', version=version, + version_pattern=f'{version}.%', target=target, arch=arch, edition=edition, @@ -567,9 +555,11 @@ def download_file(self, url: str) -> DownloadResult: headers['If-None-Match'] = etag if modtime: headers['If-Modified-Since'] = modtime - req = urllib.request.Request(url, headers=headers) - digest = hashlib.md5(url.encode("utf-8")).hexdigest()[:4] + digest = hashlib.sha256(url.encode("utf-8")).hexdigest()[:4] dest = self._dirpath / 'files' / digest / PurePosixPath(url).name + if not dest.exists(): + headers = {} + req = urllib.request.Request(url, headers=headers) try: resp = urllib.request.urlopen(req) @@ -949,7 +939,7 @@ def _maybe_extract_member(out: Path, relpath: PurePath, pattern: 'str | None', return 0 if not _test_pattern(relpath, PurePath(pattern) if pattern else None): # Doesn't match our pattern - print(' (excluded by pattern)') + print(' (excluded by pattern)', file=sys.stderr) return 0 stripped = _pathjoin(relpath.parts[strip:]) dest = Path(out) / stripped diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f39363b4..30da2c0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,14 +55,6 @@ jobs: - uses: actions/setup-python@v5 - uses: pre-commit/action@v3.0.1 - update-mongodb-download: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - run: | - python scripts/update_mongodb_download.py - eslint: runs-on: ubuntu-latest steps: diff --git a/scripts/update_mongodb_download.py b/scripts/update_mongodb_download.py deleted file mode 100644 index ad5b4baf..00000000 --- a/scripts/update_mongodb_download.py +++ /dev/null @@ -1,91 +0,0 @@ -import json -import urllib.error -import re -import urllib.request -import sys - -# Download a copy of full.json into memory. -print("Fetching version data...") -url = 'https://downloads.mongodb.org/full.json' -req = urllib.request.Request(url) -try: - resp = urllib.request.urlopen(req) -except urllib.error.HTTPError as e: - if e.code != 304: - raise RuntimeError( - 'Failed to download [{u}]'.format(u=url)) from e -data = json.loads(resp.read().decode('utf-8')) -print("Fetching version data... done.") - -# Read in the source file. -with open('.evergreen/download-mongodb.sh') as fid: - source = fid.read() - -# Set up variables. -versions = ["3.6", "4.0", "5.0", "6.0", "7.0", "8.0", "RAPID"] -versions = dict(zip(versions, [None for _ in versions])) -missing_links = [] -missing_versions = [] -groups = [] -skip_targets = ["ubuntu1404", "amazon2"] -# The rapid version is the latest non-prerelease without a "0" minor version. -rapid_version="^\d\.[1-9]\.\d$" - -# Parse the json data. -for version in data["versions"]: - v = version["version"] - key = v[:3] - if key not in versions: - if re.match(rapid_version, v): - key = "RAPID" - else: - continue - if versions[key] is None: - versions[key] = v - else: - continue - - version_name = f"VERSION_{key.replace('.', '')}" - couplets = [] - for download in version["downloads"]: - if download["edition"] == "enterprise": - if download["target"] in skip_targets: - continue - couplets.append((download["target"], download["arch"])) - url = download['archive']['url'] - expected = url.replace('-' + v, '${DEBUG}-${' + version_name + '}') - expected = expected.replace('https://downloads.mongodb.com', 'http://downloads.10gen.com') - if expected not in source: - missing_links.append(expected) - groups.append((version_name, v, couplets)) - expected = f'{version_name}="{v}"' - if expected not in source: - missing_versions.append(expected) - -# Print a summary of versions and supported target-arch pairs. -for (name, v, couplets) in groups: - print("-" * 25) - print(f'{name} ({v})') - print("-" * 25) - couplets = sorted(couplets, key=lambda tup: tup[0]) - for target, arch in couplets: - print(f'{target}-{arch}') - -# Print a summary of missing links. -if missing_links: - print("-" * 25) - print("Missing or incorrect links:") - print("-" * 25) - for link in missing_links: - print(link) - -# Print a summary of missing versions. -if missing_versions: - print("-" * 25) - print("Missing or out of date versions:") - print("-" * 25) - for version in missing_versions: - print(version) - -if missing_versions or missing_links: - sys.exit(1)