summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Berg <sfb@consultron.com>2016-02-15 14:50:27 +0100
committerStefan Berg <stefan.k.berg@ericsson.com>2016-02-15 13:59:14 +0000
commit5f52830dd36d6a06769ad9a40121f6d7b6b708d3 (patch)
tree7a79845f6ca8a1fe8174f82d9e3c3b4c9655d373
parent0a8a364120f90b996ddb2dcab23819c7b100765f (diff)
Fix for blacklisting Ubuntu mirrors with "issues"
Change-Id: Id60f2625c2d84695b86b5b7bce3271babcefde12 Signed-off-by: Stefan Berg <sfb@consultron.com>
-rwxr-xr-xbuild/f_isoroot/f_repobuild/select_ubuntu_repo.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/f_isoroot/f_repobuild/select_ubuntu_repo.sh b/build/f_isoroot/f_repobuild/select_ubuntu_repo.sh
index bfaec74f1..540f7ebce 100755
--- a/build/f_isoroot/f_repobuild/select_ubuntu_repo.sh
+++ b/build/f_isoroot/f_repobuild/select_ubuntu_repo.sh
@@ -18,6 +18,11 @@ RSYNC="rsync -4 --contimeout 5 --no-motd --list-only"
# local mirror can be found after four attempts, the default archive
# is returned instead.
+# Some Ubuntu mirrors seem less reliable for this type of mirroring -
+# as they are discoved they can be added to the blacklist below in order
+# for them not to be considered.
+BLACKLIST="mirrors.se.eu.kernel.org"
+
return_url=0
while [ "$1" != "" ]; do
@@ -30,13 +35,13 @@ while [ "$1" != "" ]; do
shift
done
-
cnt=0
while [ $cnt -lt 4 ]
do
for url in $(curl -s http://mirrors.ubuntu.com/mirrors.txt)
do
host=$(echo $url | cut -d'/' -f3)
+ echo ${BLACKLIST} | grep -q ${host} && continue
if $RSYNC "${host}::ubuntu/." &> /dev/null
then
if ! $RSYNC "${host}::ubuntu/Archive-Update-in-Progress*" &> /dev/null