daca2: dont terminate when a package fails. try to continue.

This commit is contained in:
Daniel Marjamäki 2013-10-25 06:43:08 +02:00
parent 2f864dec49
commit 45e7c488a0
1 changed files with 5 additions and 5 deletions

View File

@ -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])