diff options
author | 2020-01-08 16:10:37 +0100 | |
---|---|---|
committer | 2020-01-08 18:16:54 +0100 | |
commit | 5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26 (patch) | |
tree | bba1c7e4cee160e7992f16d14243337b1f7292f9 /utils | |
parent | 97fb35a2ed83a8ec6df9b897deaf98177d33b8e9 (diff) | |
download | buildroot-5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26.tar.gz buildroot-5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26.tar.bz2 |
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 <francois.perrad@gadz.org>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/scancpan | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |