CPAN-SQLite
view release on metacpan or search on metacpan
lib/CPAN/SQLite/Index.pm view on Meta::CPAN
}
return 0 unless $ENV{'CPAN_SQLITE_DOWNLOAD_URL'};
$CPAN::FrontEnd->myprint("Downloading the compiled index db ... ");
if (my $response =
HTTP::Tiny->new->mirror($ENV{'CPAN_SQLITE_DOWNLOAD_URL'} => catfile($self->{'db_dir'}, $self->{'db_name'})))
{
if ($response->{'success'} and $response->{'status'} and $response->{'status'} eq '200') {
if (my $type = $response->{'headers'}->{'content-type'}) {
if ($type eq 'application/x-sqlite3') {
return 1;
}
}
}
}
$CPAN::FrontEnd->mywarn('Cannot download the compiled index db');
return 0;
}
( run in 1.717 second using v1.01-cache-2.11-cpan-524268b4103 )