Skip to content

Commit c0bd667

Browse files
author
Murilo Marinho
committed
Renaming architecture as expected by the debian
1 parent e2a2746 commit c0bd667

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.devel/build_ros2.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ rosv="jazzy"
1515
ubuntuv="noble"
1616
# Architecture
1717
arch=$(uname -i)
18+
if [[ $arch == x86_64* ]]; then
19+
archv="amd64"
20+
elif [[ $arch == arm* ]]; then
21+
archv="arm64"
22+
fi
1823

1924
PRE_BUILD() {
2025
# Remove the debian folder just in case. In ROS1 and catkin this was an issue
@@ -121,6 +126,6 @@ for pkg_name in "${pkg_array[@]}"; do
121126
cd ..
122127
# Install package but replace _ by -. E.g. sas_core becomes sas-core.
123128
# https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
124-
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"_"$arch".deb
129+
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"_"$archv".deb
125130
${var//12345678/$replace}
126131
done

0 commit comments

Comments
 (0)