The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MDV::Distribconf::Checks - A Subclass to MDV::Distribconf::Build to check distribution tree

METHODS

$distrib->check_config
$distrib->check_media_coherency($fhout)

Performs basic checks on the distribution and prints to $fhout (STDERR by default) warnings and errors found. Returns the number of errors reported.

$distrib->check_index_sync($media)

Check the synchronisation between rpms contained by media $media and its hdlist:

  - all rpms should be in the hdlist
  - the hdlist should not contains rpms that does not exists

Return 1 if no problem were found

$distrib->check_media_md5($media)

Check md5sum for hdlist and synthesis for the media $media are the same than value contains in the existing MD5SUM file.

The function return an error also if the value is missing

Return 1 if no error were found.

$distrib->checkdistrib($fhout)

Performs all light checks on the distribution and prints to $fhout (STDERR by default) warnings and errors found. Returns the number of errors reported.

$distrib->check($fhout)

SEE ALSO

MDV::Distribconf MDV::Distribconf::Build

AUTHOR

Olivier Thauvin <nanardon@mandriva.org>

LICENSE AND COPYRIGHT

(c) 2005 Olivier Thauvin ; (c) 2005, 2006 Mandriva

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.