Test::AutoBuild::Stage::Yum.3pm

Langue: en

Autres versions - même langue

Version: 2007-12-08 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Test::AutoBuild::Stage::Yum - Create an index for Yum package management tool

SYNOPSIS

   use Test::AutoBuild::Stage::Yum
 
   my $stage = Test::AutoBuild::Stage::Yum->new(name => "yum",
                                                label => "Create yum index",
                                                options => {
                                                  directory => "/var/lib/builder/public_html/dist",
                                                  parameters => "-d -s -n",
                                                });
 
   $stage->run($runtime);
 
 

DESCRIPTION

This module invokes the "yum-arch(8)" command to generate an index of RPM packages generated during the build. The index enables use of the yum(8) command to install packages generated by the builder. The "yum-arch(8)" command is expected to be found in the $PATH.

CONFIGURATION

In addition to the standard parameters defined by the Test::AutoBuild::Stage module, this module accepts two entries in the "options" parameter:
directory
The full path to the directory containing RPMs to be indexed. If this option is not specified, then the "directories" option must be set.
directories
An array of paths to directories containing RPMs to be indexed. If this option is not specified, then the "directory" option must be set.
parameters
A string of command line arguments to be passed to the "yum-arch" command, see the "yum-arch(8)" manual page for details of possible values.

EXAMPLE

   {
     name = yum
     label = Update Yum Repository
     module = Test::AutoBuild::Stage::Yum
     critical = 0
     options = {
       directory = /var/lib/builder/public_html/dist
       parameters = -d
     }
   }
 
 

METHODS

$stage->process($runtime);
For each directory defined in the "options" parameter, this method will run the "yum-arch" command to generate the index.

AUTHORS

Daniel Berrange <dan@berrange.com> Dennis Gregorovic <dgregorovic@alum.mit.edu> Copyright (C) 2004 Red Hat, Inc.

SEE ALSO

perl(1), Test::AutoBuild::Stage, yum(8), "yum-arch(8)"