2020-04-20 11:19:52 +08:00

18 lines
498 B
Bash
Executable File

#!/bin/bash
# requires: wget curl
set -e
set -o pipefail
_here=`dirname $(realpath $0)`
apt_sync="${_here}/apt-sync.py"
BASE_PATH="${TUNASYNC_WORKING_DIR}"
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"http://packages.ros.org/ros2"}
APT_PATH="${BASE_PATH}/ubuntu"
APT_VERSIONS=@ubuntu-lts,disco,eoan,focal,@debian-current
# =================== APT repos ===============================
"$apt_sync" --delete-dry-run "${BASE_URL}/ubuntu" $APT_VERSIONS main amd64,armhf,arm64 "$APT_PATH"
echo "APT finished"