From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 10 Jun 2024 21:42:25 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sGkuP-003r7w-0N for lore@lore.pengutronix.de; Mon, 10 Jun 2024 21:42:25 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sGkuO-0007G2-Q2; Mon, 10 Jun 2024 21:42:24 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sGkta-000609-Is; Mon, 10 Jun 2024 21:41:34 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sGktZ-001NMx-V3; Mon, 10 Jun 2024 21:41:33 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sGktZ-008uvP-2v; Mon, 10 Jun 2024 21:41:33 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Mon, 10 Jun 2024 21:41:33 +0200 Message-Id: <20240610194133.2125423-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240527201347.673604-6-l.stach@pengutronix.de> References: <20240527201347.673604-6-l.stach@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] ptxd_make_world_lint: check for usage of deprecated FTP protocol 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: Lucas Stach 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 25569bfbd9aa26d3f5eb7635ae421c216211511b. Michael [sent from post-receive hook] On Mon, 10 Jun 2024 21:41:33 +0200, Lucas Stach wrote: > FTP is on its way out, so it should not be used in package URLs > anymore. Add a lint check to ensure that. > > Signed-off-by: Lucas Stach > Message-Id: <20240527201347.673604-6-l.stach@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_make_world_lint.sh b/scripts/lib/ptxd_make_world_lint.sh > index 01a35d4801b8..42785f186d77 100644 > --- a/scripts/lib/ptxd_make_world_lint.sh > +++ b/scripts/lib/ptxd_make_world_lint.sh > @@ -281,6 +281,23 @@ ptxd_make_world_lint_credits() { > export -f ptxd_make_world_lint_credits > PTXDIST_LINT_COMMANDS="${PTXDIST_LINT_COMMANDS} credits" > > +ptxd_make_world_lint_ftp() { > + local filefd file > + > + echo "Checking for deprecated FTP protocol use in package URL ..." > + > + exec {filefd}< <(ptxd_make_world_lint_makefiles) > + while read file <&${filefd}; do > + if grep -q "URL.*ftp://" "${file}"; then > + ptxd_lint_error "'$(ptxd_print_path "${file}")' contains deprecated FTP URL." > + fi > + done > + exec {filefd}<&- > + echo > +} > +export -f ptxd_make_world_lint_ftp > +PTXDIST_LINT_COMMANDS="${PTXDIST_LINT_COMMANDS} ftp" > + > unset ptxd_make_world_lint_cross_whitelist > # we don't care about the initmethod > ptxd_make_world_lint_cross_whitelist+="INITMETHOD_BBINIT INITMETHOD_SYSTEMD "