diff mbox

[v2,1/3] scancpan: update with MetaCPAN API v1

Message ID 20170614141531.18497-1-francois.perrad@gadz.org
State Accepted
Headers show

Commit Message

Francois Perrad June 14, 2017, 2:15 p.m. UTC
The API v0 is shutdown.
see https://bugs.busybox.net/show_bug.cgi?id=9951

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 support/scripts/scancpan | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Thomas Petazzoni June 15, 2017, 8:36 p.m. UTC | #1
Hello,

On Wed, 14 Jun 2017 16:15:29 +0200, Francois Perrad wrote:
> The API v0 is shutdown.
> see https://bugs.busybox.net/show_bug.cgi?id=9951
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>  support/scripts/scancpan | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Series applied. Thanks!

Thomas
Francois Perrad June 18, 2017, 6:27 a.m. UTC | #2
2017-06-15 22:36 GMT+02:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:

> Hello,
>
> On Wed, 14 Jun 2017 16:15:29 +0200, Francois Perrad wrote:
> > The API v0 is shutdown.
> > see https://bugs.busybox.net/show_bug.cgi?id=9951
> >
> > Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> > ---
> >  support/scripts/scancpan | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Series applied. Thanks!
>


must be committed also in maintenance branches.

François


> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
Peter Korsgaard June 25, 2017, 10:20 p.m. UTC | #3
>>>>> "François" == François Perrad <francois.perrad@gadz.org> writes:

 > 2017-06-15 22:36 GMT+02:00 Thomas Petazzoni <
 > thomas.petazzoni@free-electrons.com>:

 >> Hello,
 >> 
 >> On Wed, 14 Jun 2017 16:15:29 +0200, Francois Perrad wrote:
 >> > The API v0 is shutdown.
 >> > see https://bugs.busybox.net/show_bug.cgi?id=9951
 >> >
 >> > Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
 >> > ---
 >> >  support/scripts/scancpan | 4 ++--
 >> >  1 file changed, 2 insertions(+), 2 deletions(-)
 >> 
 >> Series applied. Thanks!
 >> 


 > must be committed also in maintenance branches.

Committed to 2017.02.x and 2017.05.x, thanks.
diff mbox

Patch

diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index 8d44ed90..f87cdce7 100755
--- a/support/scripts/scancpan
+++ b/support/scripts/scancpan
@@ -521,7 +521,7 @@  my %deps_runtime;       # name -> list of target dependencies
 my %deps_optional;      # name -> list of optional target dependencies
 my %license_files;      # name -> list of license files
 my %checksum;           # author -> list of checksum
-my $mcpan = MetaCPAN::API::Tiny->new();
+my $mcpan = MetaCPAN::API::Tiny->new(base_url => 'http://fastapi.metacpan.org/v1');
 my $ua = HTTP::Tiny->new();
 
 sub get_checksum {
@@ -538,7 +538,7 @@  sub get_checksum {
 
 sub get_manifest {
     my ($author, $distname, $version) = @_;
-    my $url = qq{http://api.metacpan.org/source/${author}/${distname}-${version}/MANIFEST};
+    my $url = qq{http://fastapi.metacpan.org/source/${author}/${distname}-${version}/MANIFEST};
     my $response = $ua->get($url);
     return $response->{content};
 }