1Test::AutoBuild::Stage:U:sYeurm(C3o)ntributed Perl DocumTeenstta:t:iAountoBuild::Stage::Yum(3)
2
3
4
6 Test::AutoBuild::Stage::Yum - Create an index for Yum package manage‐
7 ment tool
8
10 use Test::AutoBuild::Stage::Yum
11
12 my $stage = Test::AutoBuild::Stage::Yum->new(name => "yum",
13 label => "Create yum 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 "yum-arch(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 "yum-arch(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 "yum-arch"
44 command, see the "yum-arch(8)" manual page for details of possible
45 values.
46
47 EXAMPLE
48
49 {
50 name = yum
51 label = Update Yum Repository
52 module = Test::AutoBuild::Stage::Yum
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 "yum-arch" 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), "yum-arch(8)"
74
75
76
77perl v5.8.8 2007-12-09 Test::AutoBuild::Stage::Yum(3)