CPAN-Search-Lite
view release on metacpan or search on metacpan
lib/CPAN/Search/Lite/PPM.pm view on Meta::CPAN
};
while (my ($rep_id, $mtime) = $sth->fetchrow_array) {
next unless $rep_id;
$mtimes->{$rep_id} = $mtime;
}
$sth->finish;
$self->{curr_mtimes} = $mtimes;
return 1;
}
sub update_mtime {
my $self = shift;
my $mtimes = $self->{update_mtimes};
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $sth;
foreach my $id(keys %$mtimes) {
my $mtime = $mtimes->{$id};
next unless (defined $id and defined $mtime);
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $data = $self->{update};
my $cdbi = $self->{cdbi};
unless (has_data($data)) {
$self->{info_msg} = q{No author data to update};
return;
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $cdbi = $self->{cdbi};
my $data = $self->{update};
unless (has_data($data)) {
$self->{info_msg} = q{No dist data to update};
return;
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $cdbi = $self->{cdbi};
my $data = $self->{update};
unless (has_data($data)) {
$self->{info_msg} = q{No module data to update};
return;
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $cdbi = $self->{cdbi};
return unless my $dist_obj = $self->{obj}->{dists};
my $dists = $dist_obj->{info};
my $dist_ids = $dist_obj->{ids};
my $data = $dist_obj->{update};
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $cdbi = $self->{cdbi};
return unless my $dist_obj = $self->{obj}->{dists};
return unless my $mod_obj = $self->{obj}->{mods};
my $dists = $dist_obj->{info};
my $dist_ids = $dist_obj->{ids};
lib/CPAN/Search/Lite/Populate.pm view on Meta::CPAN
}
$dbh->commit or do {
$cdbi->db_error($sth);
$self->{error_msg} = $cdbi->{error_msg};
return;
};
$sth->finish();
return 1;
}
sub update {
my $self = shift;
unless ($dbh) {
$self->{error_msg} = q{No db handle available};
return;
}
my $cdbi = $self->{cdbi};
my $data = $self->{update};
unless (has_data($data)) {
$self->{info_msg} = q{No ppm data to update};
return;
( run in 0.722 second using v1.01-cache-2.11-cpan-49f99fa48dc )