Skip to content

Commit

Permalink
Use apt-spy2 to sanitize list of apt mirrors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Feb 14, 2023
1 parent e8000f0 commit 72b74d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/build/install_depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
PKGS=""
for pkg in `grep -A 35 packages: .travis.yml | grep -e '^ *[-]' | awk '{print $2}'`
do
if [ "${BUILD_OS}" = ubuntu-22.04 -a "${pkg}" = python-dev ]
if [ "${BUILD_OS}" = "ubuntu-22.04" -a "${pkg}" = "python-dev" ]
then
pkg="python-dev-is-python3"
fi
Expand All @@ -19,6 +19,13 @@ then
${PRE_INSTALL_CMD}
fi

if [ "${BUILD_OS}" != "ubuntu-18.04" ]
then
sudo gem install apt-spy2
sudo apt-spy2 check --strict
sudo apt-spy2 fix --commit --strict
fi

sudo apt-get update -y
sudo apt-get -y install ${PKGS}

Expand Down

0 comments on commit 72b74d8

Please sign in to comment.