daca2: fixed wget function

This commit is contained in:
Daniel Marjamäki 2014-02-23 10:21:00 +01:00
parent c3a08bf108
commit 1d801ce7b1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def wget(filepath):
filename = filename[filename.rfind('/') + 1:]
for d in DEBIAN:
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):
return True
print('Sleep for 10 seconds..')