Skip to content

Commit

Permalink
Pin bundled industrial_ci debian repository only
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Sep 5, 2023
1 parent 9f963f6 commit dbd49f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions industrial_ci/src/tests/debians.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ function make_repo() {

function update_repo() (
local repo=$1; shift
ici_guard cd "$repo" && ici_guard dpkg-scanpackages . > Packages
ici_guard cd "$repo" &&
ici_guard apt-ftparchive packages . > Packages
ici_guard apt-ftparchive release -o APT::FTPArchive::Release::Origin=industrial_ci "$repo" > "$repo/Release"
)

function use_repo() (
local repo=$1; shift
ici_guard ici_asroot rm -f /etc/apt/apt.conf.d/docker-clean
echo "deb [trusted=yes] file://$repo ./" | >/dev/null ici_guard ici_asroot tee /etc/apt/sources.list.d/ici_debians.list
echo -e 'Package: *\nPin: origin ""\nPin-Priority: 1000' | >/dev/null ici_guard ici_asroot tee /etc/apt/preferences.d/ici_debians
ici_guard ici_asroot apt-get -o APT::Sandbox::User=root update -qq
echo -e 'Package: *\nPin: release o=industrial_ci\nPin-Priority: 1000' | >/dev/null ici_guard ici_asroot tee /etc/apt/preferences.d/ici_debians
ici_guard ici_asroot apt-get -o APT::Sandbox::User=root update
)

function forward_mounts() {
Expand Down Expand Up @@ -103,7 +105,7 @@ function run_debians() {
ici_source_builder
ici_step "${BUILDER}_setup" builder_setup
ici_step "setup_bloom" ici_install_pkgs_for_command bloom-generate python3-bloom debhelper
ici_step "setup_dpkg_dev" ici_install_pkgs_for_command dpkg-scanpackages dpkg-dev
ici_step "setup_apt_utils" ici_install_pkgs_for_command apt-ftparchive apt-utils
ici_step "setup_docker" ici_install_pkgs_for_command docker docker.io
ici_step "setup_rosdep" ici_setup_rosdep

Expand Down

0 comments on commit dbd49f1

Please sign in to comment.