This file is indexed.

/usr/share/pybit-web/static/package.htm is in pybit-web 1.0.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="en">
    <head>
        <META HTTP-EQUIV='PRAGMA' CONTENT='NO-CACHE'>
        <META HTTP-EQUIV="Expires" CONTENT="-1">
        <meta charset="utf-8">
        <title>pyBit - Packages</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="favicon.png" />
        <style type="text/css">
            body
            {
                padding-top : 60px; /* 60px to make the container go all the way
                 * to the bottom of the topbar */
                padding-bottom : 40px;
            }
        </style>
        <link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
        <script src="{{protocol}}{{jqueryurl}}" type="text/javascript"></script>
        <script src="{{protocol}}{{jqueryformurl}}" type="text/javascript"></script>
        <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    </head>
    <body>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="navbar navbar-inverse navbar-fixed-top">
                    <div class="navbar-inner">
                        <div class="container-fluid">
                            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
                            <a class="brand" href="index.htm">pyBit</a>
                            <div class="nav-collapse collapse">
                                <ul class="nav">
                                    <li>
                                        <a href="index.htm">Home</a>
                                    </li>
                                    <li>
                                        <a href="lookups.htm">Lookups</a>
                                    </li>
                                    <li class="active">
                                        <a href="package.htm">Packages</a>
                                    </li>
                                    <li>
                                        <a href="packageinstance.htm">Package Instances</a>
                                    </li>
                                    <li>
                                        <a href="job.htm">Jobs</a>
                                    </li>
                                    <li>
                                        <a href="buildd.htm">Build Boxes</a>
                                    </li>
                                </ul>
                            </div>
                            <!--/.nav-collapse -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="span2">
                <!--Sidebar content-->
                <div class="well sidebar-nav">
                    <ul class="nav  nav-list">
                        <li class="nav-header">
                            Navigation
                        </li>
                        <li>
                            <a href="index.htm">Home</a>
                        </li>
                        <li class="nav-header">
                            Lookups
                        </li>
                        <li>
                            <a href="arches.htm">Architectures</a>
                        </li>
                        <li>
                            <a href="statuses.htm">Statuses</a>
                        </li>
                        <li>
                            <a href="dists.htm">Dists</a>
                        </li>
                        <li>
                            <a href="formats.htm">Formats</a>
                        </li>
                        <li>
                            <a href="suites.htm">Suites</a>
                        </li>
                        <li>
                            <a href="envs.htm">Build Environments</a>
                        </li>
                        <li class="nav-header">
                            Packages
                        </li>
                        <li class="active">
                            <a href="package.htm">All Packages</a>
                        </li>
                        <li>
                            <a href="packageinstance.htm">Package Instances</a>
                        </li>
                        <li class="nav-header">
                            Jobs
                        </li>
                        <li>
                            <a href="job.htm">Jobs</a>
                        </li>
                        <li>
                            <a href="buildd.htm">BuildBoxes</a>
                        </li>
                        <li>
                            <a href="blacklist.htm">Blacklist Rules</a>
                        </li>
                    </ul>
                </div>
                <!--/.well -->
            </div>
            <div class="span10">
                <!--Body content-->
                <div class="container-fluid">
                    <h1>PyBit - python Buildd Integration Toolkit.</h1>
                    <h3>Packages</h3>
                    <div class="accordion" id="accordion1">
                        <div class="accordion-group">
                            <div class="accordion-heading">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne"> Click here to show the submit package form. </a>
                            </div>
                            <div id="collapseOne" class="accordion-body collapse">
                                <div class="accordion-inner">
                                    <form class="form" method="POST" action="package" id="package_form" name="package_form">
                                        <legend>
                                            Add a Package
                                        </legend>
 <span class="help-block">Enter the name, and version of a package, to add it to the database. <br/> This generally happens automatically thanks to the SVN or other VCS hook.</span>
                                        <label for="name">Name</label>
                                        <input name="name" type="text" />
                                        <label for="version">Version</label>
                                        <input name="version" type="text" />
                                        <br>
                                        <button type="submit" class="btn  btn-primary">
                                            Submit
                                        </button>
                                        <button type="button" class="btn">
                                            Cancel
                                        </button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
 <span class="help-block">Existing packages are listed below, and those with active jobs may be cancelled. To add a new package to the database, add its name and version using the form above.</span>
                    <table id="tbl_packages"  class="table table-bordered table-condensed">
                        <tr>
                            <th colspan='4'>Packages</th>
                        </tr>
                        <tr>
                            <th>ID</th><th>Name</th><th>Version</th><th>Operations</th>
                        </tr>
                    </table>
                    <hr>
                    <footer>
                        <p>
                            &copy; TCL 2012
                        </p>
                    </footer>
                </div>
                <!--/.fluid-container-->
                <script type="text/javascript">
                    function getUrlVars ( )
                    {
                        var vars =
                        {
                        };
                        var parts = window.location.href.replace ( /[?&]+([^=&]+)=([^&]*)/gi , function ( m , key , value )
                        {
                            vars [ key ] = value;
                        } );
                        return vars;
                    }

                    function cancel_click ( id )
                    {
                        $.ajax (
                        {
                            type : "GET" ,
                            url : "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package/" + id + "/cancel" ,
                            error : function ( data )
                            {
                                alert ( 'Error sending request to cancel active jobs for package id: ' + id + "\n" + data.responseText );
                                location.reload ( );
                            } ,
                            success : function ( data )
                            {
                                alert ( 'Active job cancel request sent for package: ' + id );
                                location.reload ( );
                            }

                        } );
                    }
                    $ ( ).ready ( function ( )
                    {
                        var package_page = 1;

                        $ ( '#package_form' ).ajaxForm ( function ( )
                        {
                            alert ( "Package Added!" );
                            location.reload ( );
                        } );

if ( getUrlVars() [ "package_page" ] )
                        {
                            package_page = getUrlVars() [ "package_page" ]
                            var url = "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package/page/" + package_page
                        }
                        else
                        {
                            var url = "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package/page/1"
                        }
                        new_package_page = parseInt ( package_page ) + 1;
                        last_package_page = parseInt ( package_page ) - 1;
 						$.getJSON ( url , function ( json )
                        {
                            $.each ( json , function ( i , field )
                            {
                                active_jobs_url = "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package/" + field.id + "/active"
                                $.get ( active_jobs_url , function ( active_jobs )
                                {
                                    if ( active_jobs == "False" )
                                    {
                                        $ ( "#tbl_packages" ).append ( "<tr><td>" + field.id + "</td><td>" + field.name + "</td><td>" + field.version + "</td><td></td></tr>" );
                                    }
                                    else
                                    if ( active_jobs == "True" )
                                    {
                                        _class = "success";
                                        $ ( "#tbl_packages" ).append ( "<tr class='" + _class + "'><td>" + field.id + "</td><td>" + field.name + "</td><td>" + field.version + "</td><td><input id='cancel' class='.btn-small  btn-danger' type='button' value='Cancel all *ACTIVE* builds for this package' onclick='cancel_click(" + field.id + ")'></input></td></tr>" );
                                    }
                                } );
                            } );

                            var url2= "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package/count"
                            $.getJSON ( url2 , function ( json2 )
							{

							var html_part1 = "";
							if (package_page > 0)
							{
							html_part1 = "<li><a href='" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package.htm?package_page=" + last_package_page + "'>Prev</a></li><li><a>" + package_page + "/" + json2 + "</a></li>";
							}

							var html_part2 = "";
							if (package_page < json2) // Not last page
							{
							html_part2 = "<li><a href='" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/package.htm?package_page=" + new_package_page + "'>Next</a></li>";
							}

                            $ ( '#tbl_packages' ).append ( "<div class='pagination'><ul>" + html_part1 + html_part2 + "</ul></div>" );
							});
                        } );
                    } );
                </script>
            </div>
        </div>
    </body>
</html>