def get_release_file(repo, retries=1):
    if repo['section']:
        # We can't use urljoin here because it works pretty bad in
        # cases when 'uri' doesn't have a trailing slash.
        download_uri = os.path.join(
            repo['uri'], 'dists', repo['suite'], 'Release')
    else:
        # Well, we have a flat repo case, so we should download Release
        # file from a different place. Please note, we have to strip
        # a leading slash from suite because otherwise the download
        # link will be wrong.
        download_uri = os.path.join(
            repo['uri'], repo['suite'].lstrip('/'), 'Release')

    for _ in six.moves.range(0, retries):
        response = requests.get(download_uri)

        # do not perform retries if release is not found
        if response.status_code == 404:
            break

    response.raise_for_status()
    return response.text
Returns true iff the instance needs to be started after transfer.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/utils/debian.py/get_release_file--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/backup.py/LUBackupExport.DoReboot