1Test::AutoBuild::Stage:U:sCerreaCtoenRterpiob(u3t)ed PerTlesDto:c:uAmuetnotBautiilodn::Stage::CreateRepo(3)
2
3
4

NAME

6       Test::AutoBuild::Stage::CreateRepo - Create an package repository index
7       for package management tools
8

SYNOPSIS

10         use Test::AutoBuild::Stage::CreateRepo
11
12         my $stage = Test::AutoBuild::Stage::CreateRepo->new(name => "crearerepo",
13                                                      label => "Create package repository index",
14                                                      options => {
15                                                        directory => "/var/lib/builder/public_html/dist",
16                                                        parameters => "-d -s -n",
17                                                      });
18
19         $stage->run($runtime);
20

DESCRIPTION

22       This module invokes the createrepo(8) command to generate an index of
23       RPM packages generated during the build. The index enables use of the
24       yum(8) command to install packages generated by the builder. The
25       crearerepo(8) command is expected to be found in the $PATH.
26

CONFIGURATION

28       In addition to the standard parameters defined by the
29       Test::AutoBuild::Stage module, this module accepts two entries in the
30       "options" parameter:
31
32       directory
33           The full path to the directory containing RPMs to be indexed. If
34           this option is not specified, then the "directories" option must be
35           set.
36
37       directories
38           An array of paths to directories containing RPMs to be indexed. If
39           this option is not specified, then the "directory" option must be
40           set.
41
42       parameters
43           A string of command line arguments to be passed to the "createrepo"
44           command, see the createrepo(8) manual page for details of possible
45           values.
46
47   EXAMPLE
48         {
49           name = createrepo
50           label = Update Pacakge Repository
51           module = Test::AutoBuild::Stage::CreateRepo
52           critical = 0
53           options = {
54             directory = /var/lib/builder/public_html/dist
55             parameters = -d
56           }
57         }
58

METHODS

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

AUTHORS

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

SEE ALSO

72       perl(1), Test::AutoBuild::Stage, yum(8), createrepo(8)
73
74
75
76perl v5.12.1                      2007-12-T0e8st::AutoBuild::Stage::CreateRepo(3)
Impressum