daca2: added --tries and --timeout in wget command
This commit is contained in:
parent
2f91539d1d
commit
cb40e83261
|
@ -24,7 +24,8 @@ def wget(filepath):
|
||||||
if filepath.find('/') >= 0:
|
if filepath.find('/') >= 0:
|
||||||
filename = filename[filename.rfind('/') + 1:]
|
filename = filename[filename.rfind('/') + 1:]
|
||||||
for d in DEBIAN:
|
for d in DEBIAN:
|
||||||
subprocess.call(['nice', 'wget', d + filepath])
|
subprocess.call(
|
||||||
|
['nice', 'wget', '--tries=10', '--timeout=300', d + filepath])
|
||||||
if os.path.isfile(filename):
|
if os.path.isfile(filename):
|
||||||
return True
|
return True
|
||||||
print('Sleep for 10 seconds..')
|
print('Sleep for 10 seconds..')
|
||||||
|
|
Loading…
Reference in New Issue