summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-22 10:50:44 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-22 10:50:44 +0000
commite12103f04022661364066a758f8df5a6bacc11a3 (patch)
treeaa779d02d9b1892c1353b221dfd566a9cf0ec472 /morphlib
parent443ddeda52e94a979dd8dcb93f81e9a6ecce1847 (diff)
downloadmorph-e12103f04022661364066a758f8df5a6bacc11a3.tar.gz
Fix exception when updating a cached clone in _cache_repo_from_url().
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/sourcemanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/sourcemanager.py b/morphlib/sourcemanager.py
index 43fd33e3..c802da28 100644
--- a/morphlib/sourcemanager.py
+++ b/morphlib/sourcemanager.py
@@ -139,6 +139,7 @@ class SourceManager(object):
if os.path.exists(cached_repo): # pragma: no cover
# the cache location exists, assume this is what we want
self.msg('Using cached clone %s of %s' % (cached_repo, repo_url))
+ 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))