Exemplo n.º 1
0
def debbuilders_from_rosdistro(c, oracle, distro, builders):
    rel = get_release_file(oracle.getIndex(), distro)
    build_files = get_release_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in rel.repositories.keys():
        if rel.repositories[name].version == None:
            print('Skipping %s, since it has no version' % name)
            continue
        if rel.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        for build_file in build_files:
            for os in build_file.get_target_os_names():
                for code_name in build_file.get_target_os_code_names(os):
                    for arch in build_file.get_target_arches(os, code_name):
                        print('Configuring ros_debbuild job for: %s_%s_%s' % (name, code_name, arch))
                        try:
                            package_order = oracle.getPackageOrder(name, distro)
                        except:
                            package_order = {name} #needed if the repo is a package and not a metapackage
                        jobs.append(ros_debbuild(c,
                                                 name,
                                                 package_order,
                                                 rel.repositories[name].url,
                                                 code_name,
                                                 arch,
                                                 distro,
                                                 rel.repositories[name].version,  # release_version
                                                 builders,
                                                 oracle.getOtherMirror('release', distro, code_name),
                                                 oracle.getKeys('release', distro),
                                                 oracle.getDebTrigger(name, distro)))
    return jobs
Exemplo n.º 2
0
def debbuilders_from_rosdistro(c, oracle, distro, builders):
    rel = get_release_file(oracle.getIndex(), distro)
    build_files = get_release_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in rel.repositories.keys():
        if rel.repositories[name].version == None:
            print('Skipping %s, since it has no version' % name)
            continue
        if rel.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        for build_file in build_files:
            for os in build_file.get_target_os_names():
                for code_name in build_file.get_target_os_code_names(os):
                    for arch in build_file.get_target_arches(os, code_name):
                        print('Configuring ros_debbuild job for: %s_%s_%s' % (name, code_name, arch))
                        jobs.append(ros_debbuild(c,
                                                 name,
                                                 oracle.getPackageOrder(name, distro),
                                                 rel.repositories[name].url,
                                                 code_name,
                                                 arch,
                                                 distro,
                                                 rel.repositories[name].version,  # release_version
                                                 builders,
                                                 oracle.getOtherMirror('release', distro, code_name),
                                                 oracle.getKeys('release', distro),
                                                 oracle.getDebTrigger(name, distro)))
    return jobs