Skip to content

Commit

Permalink
Check for availability of required packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 31, 2023
1 parent ca547fb commit a61db9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function register_local_pkgs_with_rosdep {
for pkg in "${PKG_NAMES[@]}"; do
cat << EOF >> "$DEBS_PATH/local.yaml"
$pkg:
$DISTRIBUTION:
- $(deb_pkg_name "$pkg")
ubuntu: [$(deb_pkg_name "$pkg")]
debian: [$(deb_pkg_name "$pkg")]
EOF
done
"$SRC_PATH/scripts/yaml_remove_duplicates.py" "$DEBS_PATH/local.yaml"
Expand Down Expand Up @@ -92,6 +92,8 @@ function build_pkg {
cd "$pkg_path" || return 1
trap 'trap - RETURN; cd "$old_path"' RETURN # cleanup on return

# Check availability of all required packages (bloom-generated waits for input on rosdep issues)
rosdep install --simulate --from-paths . > /dev/null || return 2
ici_label "${BLOOM_QUIET[@]}" bloom-generate "${BLOOM_GEN_CMD}" --os-name="$DISTRIBUTION" --os-version="$DEB_DISTRO" --ros-distro="$ROS_DISTRO" || return 2

# Enable CATKIN_INSTALL_INTO_PREFIX_ROOT for catkin package
Expand Down

0 comments on commit a61db9d

Please sign in to comment.