# Make sure APT do not use pipelining, to make sure it work with Squid
# as a proxy.

case "$MODE" in
    install)
	if [ -n "$http_proxy" ]; then
		mkdir -p $ROOT/etc/apt/apt.conf.d
		cat << EOF > $ROOT/etc/apt/apt.conf.d/00http-nopipeline
// Avoid Squid handing out corrupt packages,
// solves Skolelinux bug #1419.
acquire::http::pipeline-depth 0;
EOF
	fi
        ;;
esac
