예제 #1
0
파일: debian.py 프로젝트: cottsay/rosdep
def register_mx(context):
    # MX is an alias for Debian. If MX is detected and it's
    # not set as an override, force Debian.
    (os_name, os_version) = context.get_os_name_and_version()
    if os_name == OS_MX and not context.os_override:
        print('rosdep detected OS: [%s] aliasing it to: [%s]' %
              (OS_MX, OS_DEBIAN), file=sys.stderr)
        release_info = read_os_release()
        version = read_os_release()["VERSION"]
        context.set_os_override(OS_DEBIAN, version[version.find("(") + 1:version.find(")")])
예제 #2
0
파일: debian.py 프로젝트: rotu/rosdep
def register_mx(context):
    # MX is an alias for Debian. If MX is detected and it's
    # not set as an override, force Debian.
    (os_name, os_version) = context.get_os_name_and_version()
    if os_name == OS_MX and not context.os_override:
        print('rosdep detected OS: [%s] aliasing it to: [%s]' %
              (OS_MX, OS_DEBIAN), file=sys.stderr)
        release_info = read_os_release()
        version = read_os_release()["VERSION"]
        context.set_os_override(OS_DEBIAN, version[version.find("(") + 1:version.find(")")])