[Buildroot] [git commit] utils/scancpan: warn when a module is a perl core module
Yann E. MORIN
yann.morin.1998 at free.fr
Wed Jan 8 17:16:54 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=5bff3945afc4f0cf1a02fe1b35c4d733d67f9e26
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 at gadz.org>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
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 {
More information about the buildroot
mailing list