local RESULT=$(egrep 'Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)'$TMPLOG)
local RESULT=$(egrep 'Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)'$TMPLOG||true)
set-e
set-e
if[!-z"$RESULT"];then
if[!-z"$RESULT"];then
echo"$(date-u) - 'apt-get $@' failed, sleeping 5min before retrying..."
echo"$(date-u) - 'apt-get $@' failed, sleeping 5min before retrying..."
...
@@ -130,7 +130,7 @@ bootstrap() {
...
@@ -130,7 +130,7 @@ bootstrap() {
echo"Bootstraping $SUITE into $SCHROOT_TARGET now."
echo"Bootstraping $SUITE into $SCHROOT_TARGET now."