# HG changeset patch # User Mads Kiilerich # Date 2016-09-06 00:51:18 # Node ID e7b18393450a8e46f37bf5d4a23fee75c7aad4ea # Parent 9c5f794df7cd2483e895fd90f379d5e0b4482698 paster: fix output from update-repoinfo - only mention cache invalidation when cache actually was invalidated diff --git a/kallithea/lib/paster_commands/update_repoinfo.py b/kallithea/lib/paster_commands/update_repoinfo.py --- a/kallithea/lib/paster_commands/update_repoinfo.py +++ b/kallithea/lib/paster_commands/update_repoinfo.py @@ -66,7 +66,9 @@ class Command(BasePasterCommand): if self.options.invalidate_cache: for r in repo_list: r.set_invalidate() - print 'Updated cache for %s repositories' % (len(repo_list)) + print 'Updated repo info and invalidated cache for %s repositories' % (len(repo_list)) + else: + print 'Updated repo info for %s repositories' % (len(repo_list)) def update_parser(self): self.parser.add_option('--update-only',