fix suite/component names of termux

This commit is contained in:
z4yx 2020-03-08 12:52:11 +08:00
parent 66a0015853
commit 3366f73dde

View File

@ -12,23 +12,25 @@ ARCHES=("aarch64" "all" "arm" "i686" "x86_64")
function sync_one_repo() {
base_url="$1"
BASE_PATH="$2"
suite="$3"
component="$4"
[[ ! -d "$BASE_PATH" ]] && mkdir -p "$BASE_PATH"
remote_filelist="${BASE_PATH}/filelist"
[[ -f $remote_filelist ]] && rm $remote_filelist
for arch in ${ARCHES[@]}; do
echo "start syncing: $base_url ${arch}"
apt-download-binary "${base_url}" "stable" "main" "${arch}" "${BASE_PATH}" ${remote_filelist} || true
apt-download-binary "${base_url}" "$suite" "$component" "${arch}" "${BASE_PATH}" ${remote_filelist} || true
done
apt-delete-old-debs ${BASE_PATH} $remote_filelist
}
sync_one_repo "https://dl.bintray.com/termux/termux-packages-24" "${WORKING_DIR}/termux-packages-24"
sync_one_repo "https://dl.bintray.com/grimler/termux-root-packages-24" "${WORKING_DIR}/termux-root-packages-24"
sync_one_repo "https://dl.bintray.com/grimler/science-packages-24" "${WORKING_DIR}/science-packages-24"
sync_one_repo "https://dl.bintray.com/grimler/game-packages-24" "${WORKING_DIR}/game-packages-24"
sync_one_repo "https://dl.bintray.com/xeffyr/x11-packages" "${WORKING_DIR}/x11-packages"
sync_one_repo "https://dl.bintray.com/xeffyr/unstable-packages" "${WORKING_DIR}/unstable-packages"
sync_one_repo "https://dl.bintray.com/termux/termux-packages-24" "${WORKING_DIR}/termux-packages-24" stable main
sync_one_repo "https://dl.bintray.com/xeffyr/unstable-packages" "${WORKING_DIR}/unstable-packages" unstable main
sync_one_repo "https://dl.bintray.com/xeffyr/x11-packages" "${WORKING_DIR}/x11-packages" x11 main
sync_one_repo "https://dl.bintray.com/grimler/science-packages-24" "${WORKING_DIR}/science-packages-24" science stable
sync_one_repo "https://dl.bintray.com/grimler/game-packages-24" "${WORKING_DIR}/game-packages-24" games stable
sync_one_repo "https://dl.bintray.com/grimler/termux-root-packages-24" "${WORKING_DIR}/termux-root-packages-24" root stable
echo "finished"