Hi,

On Wed, 28 Mar 2018, Hideki Yamane wrote:
> From: Michael Vogt <[email protected]>
> Date: Thu, 19 Dec 2013 15:36:58 +0100
> Subject: [PATCH 09/13] try to auto-detect proxy if available
> 
> --- a/debootstrap
> +++ b/debootstrap
> @@ -49,6 +49,17 @@ PRIVATEKEY=""
>  DEF_MIRROR="http://deb.debian.org/debian";
>  DEF_HTTPS_MIRROR="https://deb.debian.org/debian";
>  
> +# do auto proxy discovery
> +AUTOPROXY=""
> +eval $(apt-config shell AUTOPROXY Acquire::http::ProxyAutoDetect)

debootstrap can be run on a non-Debian system and should not assume that
apt-config is available. I would suggest to protect this code with
a check of the existence of apt-config.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

Reply via email to