From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200613013249.4288-4-rhi@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Sat, 20 Jun 2020 00:03:59 +0200 Subject: Re: [ptxdist] [APPLIED] ptxd_make_get: print out final redirected URL on dry run List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber Thanks, applied as b1a3f9f5adb2fdb2089298a7221354b4af7af3db. Michael [sent from post-receive hook] On Sat, 20 Jun 2020 00:03:59 +0200, Roland Hieber wrote: > Some SourceForge URLs seem to fail randomly. Log the redirected URL to > facilitate debugging. > > Signed-off-by: Roland Hieber > Message-Id: <20200613013249.4288-4-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh > index 3ac0b71c2a83..d5003384619b 100644 > --- a/scripts/lib/ptxd_make_get.sh > +++ b/scripts/lib/ptxd_make_get.sh > @@ -94,6 +94,7 @@ ptxd_make_get_http() { > --location \ > --head \ > --request GET \ > + --write-out '\n%{url_effective}\n' \ > "${url}" && > if grep -i "content-type:" "${temp_header}" | tail -n 1 | grep -q "text/html"; then > ptxd_bailout "Got HTML file" _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de