summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-16 11:49:47 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-16 11:49:47 +0100
commitaa012fa8b6646fe6e5b56ff314c3eb9ada497760 (patch)
tree5ce9132edf2b9e88bfb07daa1736c1b429ec4a5a /morphlib/app.py
parent3015529556362c8bfb47096aacba83d33a49b586 (diff)
downloadmorph-aa012fa8b6646fe6e5b56ff314c3eb9ada497760.tar.gz
Add status messages for git clones / updates
Diffstat (limited to 'morphlib/app.py')
-rwxr-xr-xmorphlib/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index fadb1c43..f1c683c2 100755
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -566,6 +566,8 @@ class Morph(cliapp.Application):
if lrc.has_repo(reponame):
repo = lrc.get_repo(reponame)
if update:
+ self.status(msg='Updating cached git repository %(reponame)s',
+ reponame=reponame)
repo.update()
absref = repo.resolve_ref(ref)
elif rrc != None:
@@ -575,6 +577,8 @@ class Morph(cliapp.Application):
pass
if absref == None:
if update:
+ self.status(msg='Caching git repository %(reponame)s',
+ reponame=reponame)
repo = lrc.cache_repo(reponame)
repo.update()
else: