Skip to content

Commit 1204b5a

Browse files
committed
Only apt-get update the new repo that we've added
1 parent 4ae95e0 commit 1204b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildkite/scripts/debian/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ source ./scripts/debian/aptly.sh start --codename $MINA_DEB_CODENAME --debians $
5959
echo "Installing mina packages: $DEBS"
6060
echo "deb [trusted=yes] http://localhost:8080 $MINA_DEB_CODENAME unstable" | $SUDO tee /etc/apt/sources.list.d/mina.list
6161

62-
$SUDO apt-get update --yes
62+
# Update apt packages for the new repo, preserving all others
63+
$SUDO apt-get update --yes -o Dir::Etc::sourcelist="sources.list.d/mina.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
6364
$SUDO apt-get remove --yes "${debs[@]}"
6465
$SUDO apt-get install --yes --allow-downgrades "${debs_with_version[@]}"
6566

0 commit comments

Comments
 (0)