From 7b6f7a6328faec1998b10dadb6408adcc2739387 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:52:46 +0800 Subject: [PATCH] [Build] Deprecate the mirror packages.trafficmanager.net/debian (#17113) Why I did it Fix the issue: #17107 Work item tracking Microsoft ADO (number only): 25746782 How I did it Deprecate the no use and out of service mirrors. http://packages.trafficmanager.net/debian/debian http://packages.trafficmanager.net/debian/debian-security/ Enable the snapshot mirror by default if reproducible flag set. How to verify it --- scripts/build_mirror_config.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build_mirror_config.sh b/scripts/build_mirror_config.sh index 1ee92d4839..d6042da13c 100755 --- a/scripts/build_mirror_config.sh +++ b/scripts/build_mirror_config.sh @@ -11,18 +11,18 @@ export APT_RETRIES_COUNT DEFAULT_MIRROR_URL_PREFIX=http://packages.trafficmanager.net MIRROR_VERSION_FILE= -[[ "$SONIC_VERSION_CONTROL_COMPONENTS" == *deb* || $SONIC_VERSION_CONTROL_COMPONENTS == *all* ]] && MIRROR_VERSION_FILE=files/build/versions/default/versions-mirror +[[ "$SONIC_VERSION_CONTROL_COMPONENTS" == *deb* || $SONIC_VERSION_CONTROL_COMPONENTS == *all* ]] && MIRROR_VERSION_FILE=files/build/versions/default/versions-mirror && MIRROR_SNAPSHOT=y [ -f target/versions/default/versions-mirror ] && MIRROR_VERSION_FILE=target/versions/default/versions-mirror # The default mirror urls -DEFAULT_MIRROR_URLS=http://debian-archive.trafficmanager.net/debian/,http://packages.trafficmanager.net/debian/debian/ -DEFAULT_MIRROR_SECURITY_URLS=http://debian-archive.trafficmanager.net/debian-security/,http://packages.trafficmanager.net/debian/debian-security/ +DEFAULT_MIRROR_URLS=http://debian-archive.trafficmanager.net/debian/ +DEFAULT_MIRROR_SECURITY_URLS=http://debian-archive.trafficmanager.net/debian-security/ # The debian-archive.trafficmanager.net does not support armhf, use debian.org instead if [ "$ARCHITECTURE" == "armhf" ]; then - DEFAULT_MIRROR_URLS=http://deb.debian.org/debian/,http://packages.trafficmanager.net/debian/debian/ - DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/,http://packages.trafficmanager.net/debian/debian-security/ + DEFAULT_MIRROR_URLS=http://deb.debian.org/debian/ + DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/ fi if [ "$MIRROR_SNAPSHOT" == y ]; then