daca2: fixed wget function
This commit is contained in:
parent
c3a08bf108
commit
1d801ce7b1
|
@ -25,7 +25,7 @@ def wget(filepath):
|
||||||
filename = filename[filename.rfind('/') + 1:]
|
filename = filename[filename.rfind('/') + 1:]
|
||||||
for d in DEBIAN:
|
for d in DEBIAN:
|
||||||
subprocess.call(
|
subprocess.call(
|
||||||
['nice', 'wget', '--tries=10', '--timeout=300', '-O', filepath, d + filepath])
|
['nice', 'wget', '--tries=10', '--timeout=300', '-O', filename, 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