daca2: dont terminate when a package fails. try to continue.
This commit is contained in:
parent
2f864dec49
commit
45e7c488a0
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue