This commit is contained in:
parent
21c6e9ff80
commit
40d1159b00
@ -7,18 +7,18 @@ export DISTRIBUTION=$3
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user