def register_elementary(context):
    # Elementary is an alias for Ubuntu. If elementary is detected and it's not set as an override force ubuntu.
    (os_name, os_version) = context.get_os_name_and_version()
    if os_name == OS_ELEMENTARY and not context.os_override:
        print("rosdep detected OS: [%s] aliasing it to: [%s]" % (OS_ELEMENTARY, OS_UBUNTU), file=sys.stderr)
        context.set_os_override(OS_UBUNTU, context.os_detect.get_codename())
dataset/ETHPy150Open ros-infrastructure/rosdep/src/rosdep2/platforms/debian.py/register_elementary/original