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() results.close()
filename = fullpath[fullpath.rfind('/') + 1:] filename = fullpath[fullpath.rfind('/') + 1:]
subprocess.call(['nice', 'wget', fullpath]) count = 5
if not os.path.isfile(filename): while count > 0 and not os.path.isfile(filename):
removeAllExceptResults() count = count - 1
os.remove(filename) time.sleep(10)
sys.exit(1) subprocess.call(['nice', 'wget', fullpath])
if filename[-3:] == '.gz': if filename[-3:] == '.gz':
subprocess.call(['tar', 'xzvf', filename]) subprocess.call(['tar', 'xzvf', filename])