Skip to content

Commit

Permalink
Update apt sources before first apt install (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
mhidalgo-bdai authored Oct 17, 2024
1 parent 8e650af commit 0dd37c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ ros-$(DISTRO)-%-$(OS_VERSION)_arm64.run: FORCE # extremely slow in QEMU

ros-$(DISTRO)-%-$(OS_VERSION).run: FORCE
mkdir -p $(BUILD_DIR)/$(ALIAS)/{bloom,rosdep} $(BUILD_DIR)/$(ALIAS)/out/{pip,apt,rosdep}
sudo apt update
rosdep update
rosdep keys --from-paths $(SOURCE_DIR) | grep -e '-pip$$' > $(BUILD_DIR)/$(ALIAS)/rosdep/skip.txt
[ -f $(SOURCE_DIR)/rosdep-skip.txt ] && cat < $(SOURCE_DIR)/rosdep-skip.txt >> $(BUILD_DIR)/$(ALIAS)/rosdep/skip.txt
Expand All @@ -63,7 +64,6 @@ ros-$(DISTRO)-%-$(OS_VERSION).run: FORCE
$(SCRIPTS_DIR)/rosdep2null -o $(BUILD_DIR)/$(ALIAS)/rosdep -v $(OS_NAME) \
$$(colcon --log-base /dev/null list -t -n --packages-up-to $*) $$(cat $(BUILD_DIR)/$(ALIAS)/rosdep/skip.txt)
ROSDEP_SOURCE_PATH=$(BUILD_DIR)/$(ALIAS)/rosdep/sources.list.d:$${ROSDEP_SOURCE_PATH:-$(DEFAULT_ROSDEP_PATH)/sources.list.d} rosdep update
sudo apt update
colcon --log-base /dev/null list -t --packages-up-to $* | tr -d '\r' | while read name path ignored; do \
cp -rf $$path $(BUILD_DIR)/$(ALIAS)/bloom/.; \
pushd $(BUILD_DIR)/$(ALIAS)/bloom/$$(basename $$path); \
Expand Down

0 comments on commit 0dd37c1

Please sign in to comment.