Skip to content

Commit

Permalink
Never upgrade the debs we're trying to test (#4)
Browse files Browse the repository at this point in the history
We need to pin the debs we're trying to test or apt may try to upgrade
them from one of the repositories instead of using the local deb file.
  • Loading branch information
cottsay authored Apr 23, 2024
1 parent eb5eba5 commit 84450d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ check-debs:
RUN apt update && apt install -y curl gnupg2
RUN echo 'deb http://packages.ros.org/ros2/ubuntu jammy main' > /etc/apt/sources.list.d/ros2.list
RUN curl 'https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc' | apt-key add -
RUN echo 'Package: ros-build-essential ros-dev-tools\nPin: release n=jammy\nPin-Priority: 50' > /etc/apt/preferences.d/priority-ros2
RUN apt update
COPY +ros-build-essential-deb/ros-build-essential*.deb ./
RUN dpkg -i *.deb || true
Expand Down

0 comments on commit 84450d5

Please sign in to comment.