'Send a request to the appropriate tool shed to retrieve the dictionary of repository dependencies defined
for the received repository which is installed into Galaxy.  This method is called only from Galaxy.'

def get_repository_dependencies_for_installed_tool_shed_repository(self, app, repository):

    tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry(app, str(repository.tool_shed))
    params = dict(name=str(repository.name), owner=str(repository.owner), changeset_revision=str(repository.changeset_revision))
    pathspec = ['repository', 'get_repository_dependencies']
    try:
        raw_text = url_get(tool_shed_url, password_mgr=app.tool_shed_registry.url_auth(tool_shed_url), pathspec=pathspec, params=params)
    except Exception as e:
        log.error('The    URL\n%s\nraised    the    exception:\n%s\n', build_url(tool_shed_url, pathspec=pathspec, params=params), str(e))
        return ''
    if (len(raw_text) > 2):
        encoded_text = json.loads(raw_text)
        text = encoding_util.tool_shed_decode(encoded_text)
    else:
        text = ''
    return text
