MDV::Distribconf::Build - Subclass to MDV::Distribconf to build configuration
Returns a new MDV::Distribconf::Build object.
Create initals directories in the distrib tree if missing.
$flavour is either 'mandriva' or 'mandrake', depending the tree type you want to create.
See also "settree" in MDV::Distribconf
Return 1 on success, 0 otherwise.
Create a media $media if not exists and its directories if need.
See also setvalue
Return 1 on success, 0 otherwise
Sets or adds $var parameter from $media to $val.
If $media doesn't exist,
it is implicitly created.
If $var is
a new media is created with no defined parameters.
Delete $var parameter from $media. If $var is not specified, the media is is deleted. If $media is not specified, $var is remove from global settings.
Writes the hdlists file to
or if no parameter is given,
in the media information directory.
$hdlists can be a file path or a file handle.
Returns 1 on success,
0 on error.
Write the media.cfg file into the media information directory, or into the $mediacfg given as argument. $mediacfg can be a file path, or a glob reference (\*STDOUT for example).
Returns 1 on success, 0 on error.
Write the VERSION file. Returns 0 on error, 1 on success.
Write the productid file. Returns 0 on error, 1 on success.
List media which really exists on the disk
Set media size into media.cfg for $media
Set media size into media.cfg
Olivier Thauvin <firstname.lastname@example.org>
(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.