'Send a request to the relevant tool shed to see if there are any updates.'

@web.expose
@web.require_admin
def check_for_updates(self, trans, **kwd):

    repository_id = kwd.get('id', None)
    repository = repository_util.get_installed_tool_shed_repository(trans.app, repository_id)
    tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry(trans.app, str(repository.tool_shed))
    params = dict(galaxy_url=web.url_for('/', qualified=True), name=str(repository.name), owner=str(repository.owner), changeset_revision=str(repository.changeset_revision))
    pathspec = ['repository', 'check_for_updates']
    url = util.build_url(tool_shed_url, pathspec=pathspec, params=params)
    return trans.response.send_redirect(url)
