CPAN-Search-Lite
view release on metacpan or search on metacpan
lib/CPAN/Search/Lite/PPM.pm view on Meta::CPAN
9293949596979899100101102103104105106107108109110111112
};
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
241242243244245246247248249250251252253254255256257258259260261
}
$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
364365366367368369370371372373374375376377378379380381382383384
}
$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
520521522523524525526527528529530531532533534535536537538539540
}
$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
677678679680681682683684685686687688689690691692693694695696697
}
$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
847848849850851852853854855856857858859860861862863864865866867
}
$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
103710381039104010411042104310441045104610471048104910501051105210531054105510561057
}
$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.413 second using v1.01-cache-2.11-cpan-49f99fa48dc )