'Add an entry to self.installed_tool_dependencies_of_installed_repositories.'

def add_entry_to_installed_tool_dependencies_of_installed_repositories(self, repository):

    repository_tup = self.get_repository_tuple_for_installed_repository_manager(repository)
    if (repository_tup not in self.installed_tool_dependencies_of_installed_repositories):
        (tool_shed, name, owner, installed_changeset_revision) = repository_tup
        debug_msg = ('Adding    an    entry    for    revision    %s    of    repository    %s    owned    by    %s    ' % (installed_changeset_revision, name, owner))
        debug_msg += 'to    installed_tool_dependencies_of_installed_repositories.'
        log.debug(debug_msg)
        installed_tool_dependency_tups = []
        for tool_dependency in repository.tool_dependencies:
            if (tool_dependency.status == self.app.install_model.ToolDependency.installation_status.INSTALLED):
                tool_dependency_tup = self.get_tool_dependency_tuple_for_installed_repository_manager(tool_dependency)
                installed_tool_dependency_tups.append(tool_dependency_tup)
        self.installed_tool_dependencies_of_installed_repositories[repository_tup] = installed_tool_dependency_tups
