(setup_type)
Check if distribution is supported
Check if distribution is supported
Check if distribution is supported
def _check_distro(setup_type):
    """Check if distribution is supported"""
    if (distro.id() in supported_distros):
        return

    base_url = defs.user_guide_url + "doc/"
    instructions_url = {
        defs.sdr_setup_type: "sdr.md",
        defs.linux_usb_setup_type: "tbs.md",
        defs.standalone_setup_type: "s400.md",
        defs.sat_ip_setup_type: "sat-ip.md"
    }
    full_url = base_url + instructions_url[setup_type]
    logger.error("{} is not a supported Linux distribution".format(
        distro.name()))
    logger.info(
        textwrap.fill("Please, refer to the {} receiver setup "
                      "instructions at {}".format(setup_type, full_url)))
    raise ValueError("Unsupported Linux distribution")
def _check_distro ( setup_type ) : if ( distro . id ( ) in supported_distros ) : return base_url = defs . user_guide_url + "doc/" instructions_url = { defs . sdr_setup_type : "sdr.md" , defs . linux_usb_setup_type : "tbs.md" , defs . standalone_setup_type : "s400.md" , defs . sat_ip_setup_type : "sat-ip.md" } full_url = base_url + instructions_url [ setup_type ] logger . error ( "{} is not a supported Linux distribution" . format ( distro . name ( ) ) ) logger . info ( textwrap . fill ( "Please, refer to the {} receiver setup " "instructions at {}" . format ( setup_type , full_url ) ) ) raise ValueError ( "Unsupported Linux distribution" )