Exemplo n.º 1
0
def _ros_requires_boostrap(config):
    """Whether we might need to bootstrap ros"""
    for entry in config.get_source():
        if is_path_ros(os.path.join(config.get_base_path(), entry.get_local_name())):
            # we assume that if any of the elements we installed came
            # from a VCS source, a bootsrap might be useful
            if entry.get_scmtype() is not None:
                return True
    return False
Exemplo n.º 2
0
def _ros_requires_boostrap(config):
    """
    Tests whether workspace contains a core ros stack, to decide
    whether to rosmake

    :param config: workspace config object
    """
    for entry in config.get_source():
        if is_path_ros(os.path.join(config.get_base_path(), entry.get_local_name())):
            # we assume that if any of the elements we installed came
            # from a VCS source, a bootsrap might be useful
            if entry.get_scmtype() is not None:
                return True
    return False
def _ros_requires_boostrap(config):
    """
    Tests whether workspace contains a core ros stack, to decide
    whether to rosmake

    :param config: workspace config object
    """
    for entry in config.get_source():
        if is_path_ros(
                os.path.join(config.get_base_path(), entry.get_local_name())):
            # we assume that if any of the elements we installed came
            # from a VCS source, a bootsrap might be useful
            if entry.get_scmtype() is not None:
                return True
    return False