summaryrefslogtreecommitdiff
path: root/build-helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-helpers.sh')
-rwxr-xr-xbuild-helpers.sh33
1 files changed, 0 insertions, 33 deletions
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}"