diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-14 13:36:45 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-14 13:38:22 +0000 |
commit | 272f92d66671ff2c3f9c7b759c57854c742c3745 (patch) | |
tree | 61825411311e2741629f22213ffde4f90ddee9ff /morphlib | |
parent | aeb8c3a75990be29ca4692889709e027e91f5659 (diff) | |
download | morph-272f92d66671ff2c3f9c7b759c57854c742c3745.tar.gz |
Ignore remote update failures in bootstrap mode.
This is needed because if there are any connection errors during
bootstrap, we do not want that to affect the build. It is mostly a hack
that should not be necessary. But it is and that's life.
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/sourcemanager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/sourcemanager.py b/morphlib/sourcemanager.py index 0631e3d2..2b692c54 100644 --- a/morphlib/sourcemanager.py +++ b/morphlib/sourcemanager.py @@ -196,7 +196,9 @@ class SourceManager(object): self.msg) except morphlib.execute.CommandFailure, e: # pragma: no cover self.indent_less() - raise RepositoryUpdateError(repo, ref, e) + # ignore remote update failures during bootstrap + if not self.settings['bootstrap']: + raise RepositoryUpdateError(repo, ref, e) else: # pragma: no cover self.msg('Assuming cached repository %s is up to date' % cached_repo) |