1Test::AutoBuild::Stage:U:sCerreaCtoenRterpiob(u3t)ed PerTlesDto:c:uAmuetnotBautiilodn::Stage::CreateRepo(3)
2
3
4
6 Test::AutoBuild::Stage::CreateRepo - Create an package repository index
7 for package management tools
8
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
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 crear‐
25 erepo(8) command is expected to be found in the $PATH.
26
28 In addition to the standard parameters defined by the Test::Auto‐
29 Build::Stage module, this module accepts two entries in the "options"
30 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 {
50 name = createrepo
51 label = Update Pacakge Repository
52 module = Test::AutoBuild::Stage::CreateRepo
53 critical = 0
54 options = {
55 directory = /var/lib/builder/public_html/dist
56 parameters = -d
57 }
58 }
59
61 $stage->process($runtime);
62 For each directory defined in the "options" parameter, this method
63 will run the "createrepo" command to generate the index.
64
66 Daniel Berrange <dan@berrange.com> Dennis Gregorovic <dgre‐
67 gorovic@alum.mit.edu>
68
70 Copyright (C) 2004 Red Hat, Inc.
71
73 perl(1), Test::AutoBuild::Stage, yum(8), createrepo(8)
74
75
76
77perl v5.8.8 2007-12-T0e9st::AutoBuild::Stage::CreateRepo(3)