summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
authorAdnan Ali <adnan.ali@codethink.co.uk>2012-02-15 10:27:01 +0000
committerAdnan Ali <adnan.ali@codethink.co.uk>2012-02-15 10:27:01 +0000
commit0e09d85050ac15d8e13cd8809fe149b3d372178e (patch)
tree453eda0999d801920f7290132f7a6d6e27835758 /lorry
parent6b0cf5a1ff00d11c94fa57184230a737adde3627 (diff)
downloadlorry-0e09d85050ac15d8e13cd8809fe149b3d372178e.tar.gz
Error:
Lorry fails as soon one mirror encounters exception. Resolve: Exception handled when some thing goes wrong with mirror and move to the other mirror.
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry8
1 files changed, 6 insertions, 2 deletions
diff --git a/lorry b/lorry
index e2dc0f4..3c5cc64 100755
--- a/lorry
+++ b/lorry
@@ -71,7 +71,11 @@ class Lorry(cliapp.Application):
with open(arg) as f:
specs = json.load(f)
for name in sorted(specs.keys()):
- self.gitify(name, specs[name])
+ try:
+ print 'Getting: ',name
+ self.gitify(name, specs[name])
+ except Exception,e:
+ print 'Exception Top:',e
self.progress('Done')
@@ -109,7 +113,7 @@ class Lorry(cliapp.Application):
self.bundle(name, gitdir)
if not self.settings['pull-only']:
self.push_to_gitorious(gitdir)
-
+
def add_remote(self, name, gitdir, pushrefspec=['refs/heads/*:refs/heads/*',
'refs/tags/*:refs/tags/*']):
"""Add gitorious as a remote to gitdir with optional refpecs for push"""