From e71f435cc6a4b2c8ab4fda8f52d3d42e96ddee14 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 1 Dec 2026 00:34:16 +0000 Subject: Tidy up apt cache directives, totally clean live-build environment --- build-helpers.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'build-helpers.sh') diff --git a/build-helpers.sh b/build-helpers.sh index 1a55a84..0e52735 100755 --- a/build-helpers.sh +++ b/build-helpers.sh @@ -790,36 +790,3 @@ extract_date() { return 0 } -# Discover a local APT caching proxy using Zeroconf. -# Resolve to IPv4 on the host to avoid mDNS dependencies in chroots. -# Honour an explicitly supplied APT_PROXY, including an empty value. - -if [ -z "${APT_PROXY+x}" ]; then - APT_PROXY="" - - if command -v avahi-browse >/dev/null 2>&1 && - command -v curl >/dev/null 2>&1; then - - APT_PROXY="$(avahi-browse -prt _apt_proxy._tcp 2>/dev/null | - awk -F';' '$1 == "=" && $3 == "IPv4" && !found { - print "http://" $8 ":" $9 - found=1 - }')" || APT_PROXY="" - - # Verify the discovered cache is reachable. - if [ -n "$APT_PROXY" ]; then - if ! curl -fsS --connect-timeout 2 --max-time 5 \ - "$APT_PROXY/acng-report.html" >/dev/null 2>&1; then - APT_PROXY="" - fi - fi - fi -fi - -if [ "$APT_PROXY" = "DIRECT" ]; then - APT_PROXY="" -fi - -export APT_PROXY - -echo "APT proxy: ${APT_PROXY:-Direct connection}" -- cgit v1.2.3