ci/install: Wait 30s before re-calling apt-get

See #1396.
This commit is contained in:
Florian Bruhin 2016-04-06 07:14:21 +02:00
parent b70975223f
commit 57cb812219

View File

@ -34,6 +34,7 @@ import sys
import subprocess
import urllib
import contextlib
import time
try:
import _winreg as winreg
@ -73,8 +74,9 @@ def apt_get(args):
folded_cmd(['sudo', 'apt-get', '-y', '-q'] + args)
except subprocess.CalledProcessError:
print()
print("apt-get failed... trying a second time!")
print("apt-get failed... trying a second time in 30s...")
print()
time.sleep(30)
folded_cmd(['sudo', 'apt-get', '-y', '-q'] + args)