parent
b70975223f
commit
57cb812219
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user