diff options
author | Adnan Ali <adnan.ali@codethink.co.uk> | 2012-02-15 10:27:01 +0000 |
---|---|---|
committer | Adnan Ali <adnan.ali@codethink.co.uk> | 2012-02-15 10:27:01 +0000 |
commit | 0e09d85050ac15d8e13cd8809fe149b3d372178e (patch) | |
tree | 453eda0999d801920f7290132f7a6d6e27835758 /lorry | |
parent | 6b0cf5a1ff00d11c94fa57184230a737adde3627 (diff) | |
download | lorry-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-x | lorry | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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""" |