NAME

ALPM::DB::Sync - Synchronized remote databases.

OBJECT METHODS

servers

$SUCCESS = $DB->add_server($URL)
$SUCCESS = $DB->remove_server($URL)
$SUCCESS = $DB->set_servers(@URLS)
@URLS = $DB->get_servers()

A plethora of accessors and mutators for the repo URLs of databases.

$URL

The base url where database files are publicly available.

@URLS

Like $URL, only more so.

$SUCCESS

Returns 1 on success, undef on failure.

update

$UPDATE_STATUS = $DB->update()
$SUCCESS = $DB->force_update()

Updating the database is like pacman -Su. Forcing an update will download a new copy of the database even if it seems that we do not need to.

$UPDATE_STATUS

Returns 1 on success, -1 if the update was unnecessary, or 0 on error.

SUCCESS

Returns 1 on success or 0 on error.

valid

$VALID = $DB->valid()

Perform validity checks upon the database, such as a signature check.

siglvl

$SIGLEVEL = $DB->siglvl()

Retrieve the signature level requirements that package and database files of this database must fulfill.

unregister

$SUCCESS = $DB->unregister()

Unregister the sync database. You probably shouldn't try to use the $DB object anymore. Right now there are no safety checks.

$SUCCESS

Returns 1 on success or undef on error.

SEE ALSO

ALPM::DB, ALPM, ALPM::Package

AUTHOR

Justin Davis, <juster at cpan dot org>

Andrew Gregory <apg@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2015 by Justin Davis

Copyright (C) 2015 by Andrew Gregory <apg@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.