utils/scancpan: update cpan.org and spdx.org URLs from http to https
Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
9abb21ab31
commit
072df09e2f
@ -31,7 +31,7 @@ $fatpacked{"MetaCPAN/API/Tiny.pm"} = <<'METACPAN_API_TINY';
|
|||||||
if $params{ua_args} && ref($params{ua_args}) ne 'ARRAY';
|
if $params{ua_args} && ref($params{ua_args}) ne 'ARRAY';
|
||||||
|
|
||||||
my $self = +{
|
my $self = +{
|
||||||
base_url => $params{base_url} || 'http://api.metacpan.org/v0',
|
base_url => $params{base_url} || 'https://api.metacpan.org/v0',
|
||||||
ua => $params{ua} || HTTP::Tiny->new(
|
ua => $params{ua} || HTTP::Tiny->new(
|
||||||
$params{ua_args}
|
$params{ua_args}
|
||||||
? @{$params{ua_args}}
|
? @{$params{ua_args}}
|
||||||
@ -525,8 +525,8 @@ my %deps_build; # name -> list of host dependencies
|
|||||||
my %deps_runtime; # name -> list of target dependencies
|
my %deps_runtime; # name -> list of target dependencies
|
||||||
my %license_files; # name -> hash of license files
|
my %license_files; # name -> hash of license files
|
||||||
my %checksum; # author -> list of checksum
|
my %checksum; # author -> list of checksum
|
||||||
my $mirror = 'http://cpan.metacpan.org'; # a CPAN mirror
|
my $mirror = 'https://cpan.metacpan.org'; # a CPAN mirror
|
||||||
my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'http://fastapi.metacpan.org/v1');
|
my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'https://fastapi.metacpan.org/v1');
|
||||||
my $ua = HTTP::Tiny->new();
|
my $ua = HTTP::Tiny->new();
|
||||||
my $new_pkgs;
|
my $new_pkgs;
|
||||||
|
|
||||||
@ -698,7 +698,7 @@ sub brname {
|
|||||||
return uc $name;
|
return uc $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Buildroot requires license name as in http://spdx.org/licenses/
|
# Buildroot requires license name as in https://spdx.org/licenses/
|
||||||
sub brlicense {
|
sub brlicense {
|
||||||
my $license = shift;
|
my $license = shift;
|
||||||
$license =~ s|apache_1_1|Apache-1.1|;
|
$license =~ s|apache_1_1|Apache-1.1|;
|
||||||
|
Loading…
Reference in New Issue
Block a user