diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-22 11:08:56 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-22 11:08:56 +0000 |
commit | 18f896eb1f539497ba50ccae372a557398c6b5d4 (patch) | |
tree | b4115bfb2781e505116b272a2b01e239c000ae3c /morphlib | |
parent | e12103f04022661364066a758f8df5a6bacc11a3 (diff) | |
download | morph-18f896eb1f539497ba50ccae372a557398c6b5d4.tar.gz |
Improve log messages and warnings when caching repos.
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/sourcemanager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/sourcemanager.py b/morphlib/sourcemanager.py index c802da28..f8314b8c 100644 --- a/morphlib/sourcemanager.py +++ b/morphlib/sourcemanager.py @@ -124,6 +124,7 @@ class SourceManager(object): repo_url, self.msg) return cached_repo, None except morphlib.execute.CommandFailure, e: # pragma: no cover + self.msg('Unable to extract bundle %s' % bundle) return None, 'Unable to extract bundle %s: %s' % (bundle, e) except morphlib.execute.CommandFailure, e: # pragma: no cover @@ -142,12 +143,12 @@ class SourceManager(object): return cached_repo, None else: # bundle server did not have a bundle for the repo - self.msg('Cloning %s into %s' % (repo_url, cached_repo)) + self.msg('Trying to clone %s into %s' % (repo_url, cached_repo)) try: morphlib.git.clone(cached_repo, repo_url, self.msg) return cached_repo, None except morphlib.execute.CommandFailure, e: - return None, 'Failed to clone from %s: %s' % (repo_url, e) + return None, 'Unable to clone from %s: %s' % (repo_url, e) def _cache_repo_from_base_urls(self, repo, ref): self.msg('Checking repository %s' % repo) |