From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 2/2] perl.req: Automatically filter-out version related requirements. Date: Wed, 28 Dec 2022 21:41:36 +0100 Message-ID: <20221228204136.391950-2-stefan.schantl@ipfire.org> In-Reply-To: <20221228204136.391950-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8152444548206403192==" List-Id: --===============8152444548206403192== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Filter-out everything like perl(5), perl(v5), perl(5.000), perl(5.000_000) etc. Signed-off-by: Stefan Schantl --- src/scripts/perl.req | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/perl.req b/src/scripts/perl.req index 5a5a54e1..2bdf04dd 100644 --- a/src/scripts/perl.req +++ b/src/scripts/perl.req @@ -47,6 +47,7 @@ foreach my $perlver (sort keys %perlreq) { } foreach my $module (sort keys %global_require) { + next if ($module =~ /^v?\d*\.?\d*\_?\d*$/); next if (&is_filtered($module)); if (length($global_require{$module}) == 0) { -- 2.30.2 --===============8152444548206403192==--