From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 20 May 2022 17:32:58 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ns4cc-003CLi-Nq for lore@lore.pengutronix.de; Fri, 20 May 2022 17:32:58 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ns4cc-0000ux-59; Fri, 20 May 2022 17:32:58 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ns4bv-0000uU-5g; Fri, 20 May 2022 17:32:15 +0200 From: Bastian Krause To: ptxdist@pengutronix.de Date: Fri, 20 May 2022 17:32:09 +0200 Message-Id: <20220520153210.7158-1-bst@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 1/2] ptxd_make_world_init: set invalid proxy value for download prevention to greppable value X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bastian Krause Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 --- scripts/lib/ptxd_make_world_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index d2d8a247d..5baa497e7 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 # -- 2.30.2