def __init__(self, distro, pkg_name, tar_dir, has_patches=False): pkg = distro.release_packages[pkg_name] repo = distro.repositories[pkg.repository_name].release_repository ros_pkg = RosPackage(pkg_name, repo) pkg_rosinstall = _generate_rosinstall(pkg_name, repo.url, get_release_tag(repo, pkg_name), True) self.recipe = _gen_recipe_for_package(distro, pkg_name, pkg, repo, ros_pkg, pkg_rosinstall, tar_dir)
def generate_rosinstall_for_repos(repos, version_tag=True, tar=False): rosinstall_data = [] for repo in repos.values(): if version_tag: version = repo.release_repository.version.split('-')[0] vcs_type = repo.release_repository.type else: version = repo.source_repository.version vcs_type = repo.source_repository.type rosinstall_data += _generate_rosinstall(repo.name, repo.source_repository.url, version, tar=tar, vcs_type=vcs_type) return rosinstall_data
def generate_rosinstall_for_repos(repos, version_tag=True, tar=False): rosinstall_data = [] for repo in repos.values(): if version_tag: version = repo.release_repository.version.split('-')[0] vcs_type = repo.release_repository.type else: version = repo.source_repository.version vcs_type = repo.source_repository.type rosinstall_data += _generate_rosinstall(repo.name, repo.source_repository.url, version, tar=tar, vcs_type=vcs_type) return rosinstall_data
def __init__(self, rosdistro, pkg_name, srcrev_cache, skip_keys): pkg = rosdistro.release_packages[pkg_name] repo = rosdistro.repositories[pkg.repository_name].release_repository ros_pkg = RosPackage(pkg_name, repo) pkg_rosinstall = _generate_rosinstall(pkg_name, repo.url, get_release_tag(repo, pkg_name), True) self.recipe = _gen_recipe_for_package(rosdistro, pkg_name, pkg, repo, ros_pkg, pkg_rosinstall, srcrev_cache, skip_keys)
def __init__(self, distro, pkg_name, has_patches=False): pkg = distro.release_packages[pkg_name] repo = distro.repositories[pkg.repository_name].release_repository ros_pkg = RosPackage(pkg_name, repo) pkg_rosinstall =\ _generate_rosinstall(pkg_name, repo.url, get_release_tag(repo, pkg_name), True) self.pkgbuild =\ _gen_pkgbuild_for_package(distro, pkg_name, pkg, repo, ros_pkg, pkg_rosinstall) self.pkgbuild.has_patches = has_patches if pkg_name in no_python3: self.pkgbuild.python_3 = False