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