'Merge the list of missing repository dependencies into the list of installed
repository dependencies.'

def merge_missing_repository_dependencies_to_installed_container(self, containers_dict):

    missing_rd_container_root = containers_dict.get('missing_repository_dependencies', None)
    if missing_rd_container_root:
        missing_rd_container = missing_rd_container_root.folders[0]
        installed_rd_container_root = containers_dict.get('repository_dependencies', None)
        if installed_rd_container_root:
            installed_rd_container = installed_rd_container_root.folders[0]
            installed_rd_container.label = 'Repository    dependencies'
            for (index, rd) in enumerate(missing_rd_container.repository_dependencies):
                if (index == 0):
                    continue
                installed_rd_container.repository_dependencies.append(rd)
            installed_rd_container_root.folders = [installed_rd_container]
            containers_dict['repository_dependencies'] = installed_rd_container_root
        else:
            root_container = containers_dict['missing_repository_dependencies']
            for sub_container in root_container.folders:
                sub_container.label = 'Repository    dependencies'
            containers_dict['repository_dependencies'] = root_container
    containers_dict['missing_repository_dependencies'] = None
    return containers_dict
