From 45e7c488a0b7719c97d9e43f10bb4b226437006c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 25 Oct 2013 06:43:08 +0200 Subject: [PATCH] daca2: dont terminate when a package fails. try to continue. --- tools/daca2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/daca2.py b/tools/daca2.py index c02c7b3d9..b6f4f7667 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -110,11 +110,11 @@ def scanarchive(fullpath): results.close() filename = fullpath[fullpath.rfind('/') + 1:] - subprocess.call(['nice', 'wget', fullpath]) - if not os.path.isfile(filename): - removeAllExceptResults() - os.remove(filename) - sys.exit(1) + count = 5 + while count > 0 and not os.path.isfile(filename): + count = count - 1 + time.sleep(10) + subprocess.call(['nice', 'wget', fullpath]) if filename[-3:] == '.gz': subprocess.call(['tar', 'xzvf', filename])