daca2: tell wget to overwrite file. We want that the correct file is used.

This commit is contained in:
Daniel Marjamäki 2014-02-22 07:52:51 +01:00
parent 910a90e4c1
commit 6273a270c7
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', d + filepath])
['nice', 'wget', '--tries=10', '--timeout=300', '-O', filepath, d + filepath])
if os.path.isfile(filename):
return True
print('Sleep for 10 seconds..')