mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-deb.git
synced 2026-09-20 08:03:46 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user