refactor: consolidate apt source handling into install_deps.sh

- merge APT_MIRROR and EOL archive switching into install_deps.sh
  fix_apt_sources() (buster unconditional, bullseye probed via
  Release/InRelease with fallback to archive.debian.org)
- make DEBMIRROR follow APT_MIRROR in version.env (nounset-safe)
- remove switch_archive_sources.sh (no remaining callers)
- simplify docker/Dockerfile.deps to single RUN and update CI to use
  install_deps.sh --fix-apt-only
- update docs (AGENTS.md/README.md) to reflect new flow
This commit is contained in:
boypt
2026-09-01 12:07:57 +08:00
parent 93ba9e6727
commit 82d0f3f0ab
8 changed files with 195 additions and 50 deletions

View File

@@ -2,7 +2,8 @@ OPENSSLVER=3.5.7
OPENSSLMIR=https://github.com/openssl/openssl/releases/download/openssl-${OPENSSLVER}/
OPENSSLSRC=openssl-${OPENSSLVER}.tar.gz
DEBMIRROR=http://deb.debian.org/debian/
DEBMIRROR=${APT_MIRROR:+http://${APT_MIRROR}/debian/}
DEBMIRROR=${DEBMIRROR:-http://deb.debian.org/debian/}
OPENSSH_SIDPKG=10.4p1-5
[[ -z $OPENSSH_SIDPKG ]] && \
OPENSSH_SIDPKG=$(wget -qO- http://deb.debian.org/debian/pool/main/o/openssh/ | grep -oP 'openssh_\K[0-9]+\.[0-9]+p[0-9]+-[0-9]+(?:~bpo[0-9]+(?:\+[0-9]+)?)?' | sort -V | tail -n 1)