mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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>
(cherry picked from commit 072df09e2f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
3c9959c256
commit
17a3f721c3
@@ -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|;
|
||||||
|
|||||||
Reference in New Issue
Block a user