From 9c8c9eea40cb5ef0c3bf825875e6945b92c01504 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 28 Mar 2015 09:43:32 -0400 Subject: Retry apt-get update on failure -- rabbitmq's servers are failing a bunch --- .travis/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis/install.sh b/.travis/install.sh index d42944d7..18deb8e9 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -67,7 +67,8 @@ else sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ lucid main" fi - sudo apt-get -y update + # Retry `update` on failure, some of the servers aren't super reliable. + sudo apt-get -y update || sudo apt-get -y update if [[ "${OPENSSL}" == "0.9.8" ]]; then sudo apt-get install -y --force-yes libssl-dev/lucid -- cgit v1.2.3