~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to docs/html/api/Bugzilla/Install/Requirements.html

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
 
<html>
3
 
  <head>
4
 
    <title>
5
 
Bugzilla::Install::Requirements</title>
6
 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
 
  <link rel="stylesheet" title="style" type="text/css" href="../../style.css" media="all" >
8
 
 
9
 
</head>
10
 
  <body id="pod">
11
 
<p class="backlinktop"><b><a name="___top" href="../../index.html" accesskey="1" title="All Documents">&lt;&lt;</a></b></p>
12
 
<h1>Bugzilla::Install::Requirements</h1>
13
 
<div class='indexgroup'>
14
 
<ul   class='indexList indexList1'>
15
 
  <li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
16
 
  <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
17
 
  <li class='indexItem indexItem1'><a href='#CONSTANTS'>CONSTANTS</a>
18
 
  <li class='indexItem indexItem1'><a href='#SUBROUTINES'>SUBROUTINES</a>
19
 
</ul>
20
 
</div>
21
 
 
22
 
<h1><a class='u' href='#___top' title='click to go to top of document'
23
 
name="NAME"
24
 
>NAME</a></h1>
25
 
 
26
 
<p>Bugzilla::Install::Requirements - Functions and variables dealing with Bugzilla&#39;s perl-module requirements.</p>
27
 
 
28
 
<h1><a class='u' href='#___top' title='click to go to top of document'
29
 
name="DESCRIPTION"
30
 
>DESCRIPTION</a></h1>
31
 
 
32
 
<p>This module is used primarily by <code  class="code">checksetup.pl</code> to determine whether or not all of Bugzilla&#39;s prerequisites are installed.
33
 
(That is,
34
 
all the perl modules it requires.)</p>
35
 
 
36
 
<h1><a class='u' href='#___top' title='click to go to top of document'
37
 
name="CONSTANTS"
38
 
>CONSTANTS</a></h1>
39
 
 
40
 
<dl>
41
 
<dt><a name="REQUIRED_MODULES"
42
 
><code  class="code">REQUIRED_MODULES</code></a></dt>
43
 
 
44
 
<dd>
45
 
<p>An arrayref of hashrefs that describes the perl modules required by Bugzilla.
46
 
The hashes have two keys,
47
 
<code  class="code">name</code> and <code  class="code">version</code>,
48
 
which represent the name of the module and the version that we require.</p>
49
 
</dd>
50
 
</dl>
51
 
 
52
 
<h1><a class='u' href='#___top' title='click to go to top of document'
53
 
name="SUBROUTINES"
54
 
>SUBROUTINES</a></h1>
55
 
 
56
 
<dl>
57
 
<dt><a name="check_requirements($output)"
58
 
><code  class="code">check_requirements($output)</code></a></dt>
59
 
 
60
 
<dd>
61
 
<pre  class="code"> Description: This checks what optional or required perl modules
62
 
              are installed, like C&#60;checksetup.pl&#62; does.
63
 
 
64
 
 Params:      C&#60;$output&#62; - C&#60;true&#62; if you want the function to print
65
 
                           out information about what it&#39;s doing,
66
 
                           and the versions of everything installed.
67
 
                           If you don&#39;t pass the minimum requirements,
68
 
                           the will always print out something, 
69
 
                           regardless of this parameter.
70
 
 
71
 
 Returns:    A hashref containing three values:
72
 
             C&#60;pass&#62; - Whether or not we have all the mandatory 
73
 
                       requirements.
74
 
             C&#60;missing&#62; - A hash showing which mandatory requirements
75
 
                          are missing. The key is the module name,
76
 
                          and the value is the version we require.
77
 
             C&#60;optional&#62; - Which optional modules are installed and
78
 
                           up-to-date enough for Bugzilla.</pre>
79
 
 
80
 
<dt><a name="check_graphviz($output)"
81
 
><code  class="code">check_graphviz($output)</code></a></dt>
82
 
 
83
 
<dd>
84
 
<p>Description: Checks if the graphviz binary specified in the <code  class="code">webdotbase</code> parameter is a valid binary, or a valid URL.</p>
85
 
 
86
 
<p>Params: <code  class="code">$output</code> - <code  class="code">$true</code> if you want the function to print out information about what it&#39;s doing.</p>
87
 
 
88
 
<p>Returns: <code  class="code">1</code> if the check was successful, <code  class="code">0</code> otherwise.</p>
89
 
 
90
 
<dt><a name="vers_cmp($a,_$b)"
91
 
><code  class="code">vers_cmp($a, $b)</code></a></dt>
92
 
 
93
 
<dd>
94
 
<pre  class="code"> Description: This is a comparison function, like you would use in
95
 
              C&#60;sort&#62;, except that it compares two version numbers.
96
 
              It&#39;s actually identical to versioncmp from 
97
 
              L&#60;Sort::Versions&#62;.
98
 
 
99
 
 Params:      c&#60;$a&#62; and C&#60;$b&#62; are versions you want to compare.
100
 
 
101
 
 Returns:     -1 if $a is less than $b, 0 if they are equal, and
102
 
              1 if $a is greater than $b.</pre>
103
 
 
104
 
<dt><a name="have_vers($module,_$output)"
105
 
><code  class="code">have_vers($module, $output)</code></a></dt>
106
 
 
107
 
<dd>
108
 
<pre  class="code"> Description: Tells you whether or not you have the appropriate
109
 
              version of the module requested. It also prints
110
 
              out a message to the user explaining the check
111
 
              and the result.
112
 
 
113
 
 Params:      C&#60;$module&#62; - A hashref, in the format of an item from 
114
 
                           L&#60;/REQUIRED_MODULES&#62;.
115
 
              C&#60;$output&#62; - Set to true if you want this function to
116
 
                           print information to STDOUT about what it&#39;s
117
 
                           doing.
118
 
 
119
 
 Returns:   C&#60;1&#62; if you have the module installed and you have the
120
 
            appropriate version. C&#60;0&#62; otherwise.</pre>
121
 
 
122
 
<dt><a name="install_command($module)"
123
 
><code  class="code">install_command($module)</code></a></dt>
124
 
 
125
 
<dd>
126
 
<pre  class="code"> Description: Prints out the appropriate command to install the
127
 
              module specified, depending on whether you&#39;re
128
 
              on Windows or Linux.
129
 
 
130
 
 Params:      C&#60;$module&#62; - A hashref, in the format of an item from
131
 
                           L&#60;/REQUIRED_MODULES&#62;.
132
 
 
133
 
 Returns:     nothing</pre>
134
 
</dd>
135
 
</dl>
136
 
<p class="backlinkbottom"><b><a name="___bottom" href="../../index.html" title="All Documents">&lt;&lt;</a></b></p>
137
 
 
138
 
<!-- end doc -->
139
 
 
140
 
</body></html>