diff options
author | Adnan Ali <adnan.ali@codethink.co.uk> | 2012-02-15 10:27:56 +0000 |
---|---|---|
committer | Adnan Ali <adnan.ali@codethink.co.uk> | 2012-02-15 10:27:56 +0000 |
commit | 127fedfaa71465939e48f622ddab48fc28afc836 (patch) | |
tree | 2ff32524b0282b57244590a2b7f1a594244e50b0 /lorry | |
parent | 713ada140baee5dea05898061067b227b59eab90 (diff) | |
download | lorry-127fedfaa71465939e48f622ddab48fc28afc836.tar.gz |
if any mirror fail exit code will be 1 or zero if every thing goes fine
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -79,6 +79,10 @@ class Lorry(cliapp.Application): status += 1 print 'Exception:',e logging.debug('Mirroring Error: %s' %e) + if status > 0 : + logging.debug('Total Mirrors failed: %d' %status) + status = 1 + self.progress('Done') #print 'total failed:',status sys.exit(status) |