# HG changeset patch # User Mads Kiilerich # Date 2015-01-06 00:54:35 # Node ID db101282d91b6d1166b3eea3b4d4daa8919ad8d5 # Parent 1e78adcba25ee9d6b95a1b409ba53fade3ce5ea0 paster: fix update_repoinfo command Less bitrot. 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 @@ -12,10 +12,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . """ -kallithea.lib.paster_commands.make_rcextensions -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +kallithea.lib.paster_commands.update_repoinfo +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -uodate-repoinfo paster command for Kallithea +update-repoinfo paster command for Kallithea This file was forked by the Kallithea project in July 2014. Original author and date, and relevant copyright and licensing information is below: @@ -65,8 +65,8 @@ class Command(BasePasterCommand): if self.options.repo_update_list else None if repo_update_list: - repo_list = Repository.query()\ - .filter(Repository.repo_name.in_(repo_update_list)) + repo_list = list(Repository.query()\ + .filter(Repository.repo_name.in_(repo_update_list))) else: repo_list = Repository.getAll() RepoModel.update_repoinfo(repositories=repo_list) @@ -75,7 +75,7 @@ class Command(BasePasterCommand): if self.options.invalidate_cache: for r in repo_list: r.set_invalidate() - log.info('Updated cache for %s repositories' % (len(repo_list))) + print 'Updated cache for %s repositories' % (len(repo_list)) def update_parser(self): self.parser.add_option('--update-only',