From cb40e83261f910b793e1cca5b52e47a1952c342e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 2 Jan 2014 16:50:12 +0100 Subject: [PATCH] daca2: added --tries and --timeout in wget command --- tools/daca2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/daca2.py b/tools/daca2.py index 2ed5a3947..ff32261ee 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -24,7 +24,8 @@ def wget(filepath): if filepath.find('/') >= 0: filename = filename[filename.rfind('/') + 1:] 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): return True print('Sleep for 10 seconds..')