diff mbox series

[v1] utils/scancpan: update cpan.org and spdx.org URLs from http to https

Message ID 20221219214620.28780-1-ps.report@gmx.net
State Accepted
Headers show
Series [v1] utils/scancpan: update cpan.org and spdx.org URLs from http to https | expand

Commit Message

Peter Seiderer Dec. 19, 2022, 9:46 p.m. UTC
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 utils/scancpan | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Yann E. MORIN Dec. 20, 2022, 4:12 p.m. UTC | #1
Peter, All,

On 2022-12-19 22:46 +0100, Peter Seiderer spake thusly:
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  utils/scancpan | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/utils/scancpan b/utils/scancpan
> index 075f193563..168619164f 100755
> --- a/utils/scancpan
> +++ b/utils/scancpan
> @@ -31,7 +31,7 @@ $fatpacked{"MetaCPAN/API/Tiny.pm"} = <<'METACPAN_API_TINY';
>            if $params{ua_args} && ref($params{ua_args}) ne 'ARRAY';
>  
>        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(
>                $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 %license_files;      # name -> hash of license files
>  my %checksum;           # author -> list of checksum
> -my $mirror = 'http://cpan.metacpan.org';        # a CPAN mirror
> -my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'http://fastapi.metacpan.org/v1');
> +my $mirror = 'https://cpan.metacpan.org';        # a CPAN mirror
> +my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'https://fastapi.metacpan.org/v1');
>  my $ua = HTTP::Tiny->new();
>  my $new_pkgs;
>  
> @@ -698,7 +698,7 @@ sub brname {
>      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 {
>      my $license = shift;
>      $license =~ s|apache_1_1|Apache-1.1|;
> -- 
> 2.39.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
Peter Korsgaard Dec. 21, 2022, 7:40 p.m. UTC | #2
>>>>> "Peter" == Peter Seiderer <ps.report@gmx.net> writes:

 > Signed-off-by: Peter Seiderer <ps.report@gmx.net>

Committed to 2022.11.x and 2022.02.x, thanks.
diff mbox series

Patch

diff --git a/utils/scancpan b/utils/scancpan
index 075f193563..168619164f 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -31,7 +31,7 @@  $fatpacked{"MetaCPAN/API/Tiny.pm"} = <<'METACPAN_API_TINY';
           if $params{ua_args} && ref($params{ua_args}) ne 'ARRAY';
 
       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(
               $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 %license_files;      # name -> hash of license files
 my %checksum;           # author -> list of checksum
-my $mirror = 'http://cpan.metacpan.org';        # a CPAN mirror
-my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'http://fastapi.metacpan.org/v1');
+my $mirror = 'https://cpan.metacpan.org';        # a CPAN mirror
+my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'https://fastapi.metacpan.org/v1');
 my $ua = HTTP::Tiny->new();
 my $new_pkgs;
 
@@ -698,7 +698,7 @@  sub brname {
     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 {
     my $license = shift;
     $license =~ s|apache_1_1|Apache-1.1|;