Rechercher une page de manuel
urpm::cfg.3pm
Langue: en
Version: 2007-10-02 (mandriva - 22/10/07)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
urpm::cfg - routines to handle the urpmi configuration filesSYNOPSIS
DESCRIPTION
- load_config($file)
- Reads an urpmi configuration file and returns its contents in a hash ref :
{ media => [ 'medium name 1' => { url => 'http://...', option => 'value', ... }, ], global => { # global options go here }, }
Returns undef() in case of parsing error (and sets $urpm::cfg::err to the appropriate error message.)
- dump_config($file, $config)
- Does the opposite: write the configuration file, from the same data structure. Returns 1 on success, 0 on failure.
COPYRIGHT
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SACopyright (C) 2005, 2006 Mandriva SA
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre