MDV::Distribconf::Checks - A Subclass to MDV::Distribconf::Build to check distribution trees
Performs basic checks on the distribution and prints to $fhout (STDERR by default) warnings and errors found. Returns the number of errors reported.
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
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.
Performs all light checks on the distribution and prints to $fhout (STDERR by default) warnings and errors found. Returns the number of errors reported.
Olivier Thauvin <firstname.lastname@example.org>
LICENSE AND COPYRIGHT
(c) 2005, 2006, 2007 Olivier Thauvin (c) 2005, 2006, 2007 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.