From 27dbfcb36b092f4c406c40d2f70bcac46bd0a3a3 Mon Sep 17 00:00:00 2001 From: James Tunnicliffe Date: Thu, 21 Feb 2013 14:40:45 +0000 Subject: Slightly updated apt-get update call to try harder to complete without a net connection --- linaro-hwpack-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linaro-hwpack-install') diff --git a/linaro-hwpack-install b/linaro-hwpack-install index 2cbf1e7..a6e0e96 100755 --- a/linaro-hwpack-install +++ b/linaro-hwpack-install @@ -181,7 +181,7 @@ setup_apt_sources() { # - If can't download package updates (the only difference between the two # commands), we should still be OK. echo "Updating apt package lists ..." - $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q --no-download + $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q --no-download --ignore-missing $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q || true } @@ -297,7 +297,7 @@ cleanup() { # * Second update may fail # - If can't download package updates (the only difference between the two # commands), we should still be OK. - $sudo apt-get update -qq --no-download + $sudo apt-get update -qq --no-download --ignore-missing $sudo apt-get update -qq || true fi echo "Done" -- cgit v1.2.3