mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-08 14:48:32 -04:00
fixed versions detection from sqlite website
This commit is contained in:
parent
663e6e1ff4
commit
eaf3dc37d0
1 changed files with 2 additions and 2 deletions
|
@ -204,10 +204,10 @@ sub extract_constants {
|
||||||
%constants;
|
%constants;
|
||||||
}
|
}
|
||||||
|
|
||||||
my %bad_dist = map {$_ => 1} qw/3.6.16.1/;
|
my %bad_dist = map {$_ => 1} qw/3061601/;
|
||||||
sub versions {
|
sub versions {
|
||||||
my $res = HTTP::Tiny->new->get("http://sqlite.org/changes.html");
|
my $res = HTTP::Tiny->new->get("http://sqlite.org/changes.html");
|
||||||
reverse grep {$_->as_num >= 3060100 && $bad_dist{$_->as_num}} map {s/_/./g; SQLiteUtil::Version->new($_)} $res->{content} =~ /name="version_(3_[\d_]+)"/g;
|
reverse grep {$_->as_num >= 3060100 && !$bad_dist{$_->as_num}} map {s/_/./g; SQLiteUtil::Version->new($_)} $res->{content} =~ /name="version_(3_[\d_]+)"/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub srcdir {
|
sub srcdir {
|
||||||
|
|
Loading…
Add table
Reference in a new issue