(distro_id)
return apt_repo
Find the APT package repository for the given distro
Find the APT package repository for the given distro
Find the APT package repository for the given distro
def _get_apt_repo(distro_id):
    """Find the APT package repository for the given distro"""
    if distro_id == "ubuntu":
        apt_repo = "ppa:blockstream/satellite"
    elif distro_id in ["debian", "raspbian"]:
        apt_repo = ("https://aptly.blockstream.com/"
                    "satellite/{}/").format(distro_id)
    else:
        raise ValueError("Unsupported distribution {}".format(distro_id))
    return apt_repo
def _get_apt_repo ( distro_id ) : if distro_id == "ubuntu" : apt_repo = "ppa:blockstream/satellite" elif distro_id in [ "debian" , "raspbian" ] : apt_repo = ( "https://aptly.blockstream.com/" "satellite/{}/" ) . format ( distro_id ) else : raise ValueError ( "Unsupported distribution {}" . format ( distro_id ) ) return apt_repo