Skip to content

Commit

Permalink
Always refresh tool_shed_repository_cache before fetching repositorie…
Browse files Browse the repository at this point in the history
…s by ids (since that is only called from admin_toolshed.py and installed_repository_metadata_manager.py)
  • Loading branch information
mvdbeek committed May 1, 2017
1 parent 07da123 commit 677d986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tool_shed/util/repository_util.py
Expand Up @@ -405,6 +405,8 @@ def get_installed_tool_shed_repository( app, id ):
else:
id = [ id ]
return_list = False
if hasattr(app, 'tool_shed_repository_cache'):
app.tool_shed_repository_cache.rebuild()
for i in id:
rval.append( app.install_model.context.query( app.install_model.ToolShedRepository ).get( app.security.decode_id( i ) ) )
if return_list:
Expand Down

0 comments on commit 677d986

Please sign in to comment.