NAME

AnnoCPAN::Update - Update AnnoCPAN database from local CPAN mirror

SYNOPSYS

use AnnoCPAN::Config 'config.pl';
use AnnoCPAN::Update;
AnnoCPAN::Update->run(verbose => 1);

DESCRIPTION

This module is used for updating an annocpan database from a local CPAN mirror.

METHODS

new

Construct an AnnoCPAN::Update object. Options

cpan_root

The directory containing the local CPAN mirror.

dist_class

The name of the class used to construct CPAN distribution objects. Defaults to AnnoCPAN::Dist.

run

Does everything: loads the new modules, deletes the modules that no longer exist, and collects the garbage.

If called as a class method, it calls the constructor automatically.

load_db

Load the new modules into the database. Modules that are already loaded are not affected.

load_dist($fname)

Load a specific distribution. If it is already in the database, does nothing.

delete_missing

Delete from the database all the distributions that no longer exist in the CPAN mirror.

garbage_collect

Delete from the database the Pods and Dists that no longer exist in any version.

SEE ALSO

AnnoCPAN::DBI, AnnoCPAN::Config, AnnoCPAN::Dist

AUTHOR

Ivan Tubert-Brohman <itub@cpan.org>

COPYRIGHT

Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.