From: Francois Perrad Date: Wed, 8 Jan 2020 15:10:37 +0000 (+0100) Subject: utils/scancpan: warn when a module is a perl core module X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26;p=buildroot.git 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 --- 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 {