From 5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 8 Jan 2020 16:10:37 +0100 Subject: [PATCH] utils/scancpan: warn when a module is a perl core module we don't want create new BR package with perl core module, because core modules are already included in perl distribution, and built with the BR package perl. Signed-off-by: Francois Perrad Signed-off-by: Yann E. MORIN --- utils/scancpan | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/scancpan b/utils/scancpan index ac5fd5159a..dbd8dab6d3 100755 --- a/utils/scancpan +++ b/utils/scancpan @@ -611,6 +611,9 @@ sub fetch { unless ($dist{$name} && !$top) { say qq{fetch ${name}} unless $quiet; my $result = $mcpan->release( distribution => $name ); + my $main_module = $result->{main_module}; + push @info, qq{[$name] $main_module is a core module} + if $top && Module::CoreList::is_core( $main_module, undef, $] ); $dist{$name} = $result; $license_files{$name} = {}; eval { -- 2.30.2