summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
authorAdnan Ali <adnan.ali@codethink.co.uk>2012-02-15 10:27:56 +0000
committerAdnan Ali <adnan.ali@codethink.co.uk>2012-02-15 10:27:56 +0000
commit127fedfaa71465939e48f622ddab48fc28afc836 (patch)
tree2ff32524b0282b57244590a2b7f1a594244e50b0 /lorry
parent713ada140baee5dea05898061067b227b59eab90 (diff)
downloadlorry-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-xlorry4
1 files changed, 4 insertions, 0 deletions
diff --git a/lorry b/lorry
index cea5748..52ebe8c 100755
--- a/lorry
+++ b/lorry
@@ -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)