From 191776c93f9a82379c8efed2d568b4cd29aba612 Mon Sep 17 00:00:00 2001
From: "Stefan K. Berg" <stefan.k.berg@ericsson.com>
Date: Fri, 22 Jan 2016 13:15:02 +0100
Subject: Select closest Fuel mirror as measured by ping

Select the (hopefully) geographically closest Fuel mirror to speed
up the build time.

Change-Id: I586d90ae58a9c22b1cf60df1bdb907c0e97486fa
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
(cherry picked from commit 49ccd1f337d09cc84b168afd970acaa2aaceff25)
---
 build/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'build/Makefile')

diff --git a/build/Makefile b/build/Makefile
index 5ba8259bd..550f360f9 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -49,7 +49,7 @@ export MIRROR_UBUNTU_URL := $(shell ./f_isoroot/f_repobuild/select_ubuntu_repo.s
 export MIRROR_UBUNTU := $(shell echo "$(MIRROR_UBUNTU_URL)" | cut -d'/' -f3 )
 export MIRROR_UBUNTU_ROOT := $(shell echo -n '/' ; echo "$(MIRROR_UBUNTU_URL)" | cut -d'/' -f4-)
 
-export LATEST_MIRROR_ID_URL := http://mirror.seed-us1.fuel-infra.org
+export LATEST_MIRROR_ID_URL := http://$(shell ./select_closest_fuel_mirror.py)
 
 export MIRROR_MOS_UBUNTU := $(shell echo "$(LATEST_MIRROR_ID_URL)" | cut -d'/' -f3)
 export LATEST_TARGET_UBUNTU := $(shell curl -sSf "$(MIRROR_MOS_UBUNTU)/mos-repos/ubuntu/8.0.target.txt" | head -1)
-- 
cgit