Thanks, applied as c39d7fba235985a37abbaf36c3c8926f9e2e40d1.

Michael

[sent from post-receive hook]

On Wed, 25 May 2022 11:45:42 +0200, Bastian Krause <b...@pengutronix.de> wrote:
> In case a download is triggered in a non-get stage, e.g. in a code
> signing provider missing the ptx/online-code-signing-provider macro,
> a proxy error is printed in most cases.
> 
> Help the confused developers by giving them an invalid proxy value that
> is self-explanatory and greppable.
> 
> In my case the proxy error message from the online code signing provider
> was:
> 
>   proxyconnect tcp: dial tcp: lookup -: no such host
> 
> With this patch it is now:
> 
>    proxyconnect tcp: dial tcp: lookup PTXDIST-UNALLOWED-DOWNLOAD: no such host
> 
> Signed-off-by: Bastian Krause <b...@pengutronix.de>
> Message-Id: <20220520153210.7158-1-...@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_make_world_common.sh 
> b/scripts/lib/ptxd_make_world_common.sh
> index d2d8a247dd39..5baa497e77cf 100644
> --- a/scripts/lib/ptxd_make_world_common.sh
> +++ b/scripts/lib/ptxd_make_world_common.sh
> @@ -415,7 +415,8 @@ ptxd_make_world_init() {
>      # try to prevent downloads outside the get stage
>      #
>      if [ "${pkg_stage}" != "get" ]; then
> -     pkg_env="HTTPS_PROXY=- HTTP_PROXY=- https_proxy=- http_proxy=- 
> ${pkg_env}"
> +     local invalid_proxy="PTXDIST-UNALLOWED-DOWNLOAD"
> +     pkg_env="HTTPS_PROXY=$invalid_proxy HTTP_PROXY=$invalid_proxy 
> https_proxy=$invalid_proxy http_proxy=$invalid_proxy ${pkg_env}"
>      fi
>  
>      #

Reply via email to