/[qa]/trunk/wml/developer.wml
ViewVC logotype

Contents of /trunk/wml/developer.wml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 369 - (hide annotations) (download)
Mon Sep 2 23:18:52 2002 UTC (10 years, 8 months ago) by joy
File size: 22232 byte(s)
further HTML fixes
1 igenibel 358 #use wml::templ::template title="Debian Developer's Packages Overview" author="Igor Genibel"
2    
3 joy 365 # +-------------------------------------------------------------------------+
4     # | Copyright (C) 2002 Igor Genibel |
5     # | |
6     # | This program is free software; you can redistribute it and/or |
7     # | modify it under the terms of the GNU General Public License |
8     # | as published by the Free Software Foundation; either version 2 |
9     # | of the License, or (at your option) any later version. |
10     # | |
11     # | This program is distributed in the hope that it will be useful, |
12     # | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13     # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14     # | GNU General Public License for more details. |
15     # +-------------------------------------------------------------------------+
16     # | This code is currently maintained and debugged by Igor Genibel, any |
17     # | questions or comments regarding this code should be directed to: |
18     # | - igor@genibel.org |
19     # +-------------------------------------------------------------------------+
20     # | - Igor Genibel - http://genibel.org/ |
21     # | $Id$
22     # +-------------------------------------------------------------------------+
23    
24 igenibel 358 <?
25    
26     $branch = array ("main",
27     "contrib",
28     "non-free",
29     "non-US/main",
30     "non-US/contrib",
31     "non-US/non-free" );
32    
33     setlocale(LC_ALL, 'fr_FR');
34    
35     $prefix="/org/qa.debian.org/data/ddpo/results";
36     #$prefix="/home/igenibel/qa.debian.org/data/ddpo/results";
37    
38     function printBackLink() {
39     ?>
40     <p><a href="developer.php">Back to main page</a></p>
41     <?
42     }
43    
44     function print_header_entries_top($keys, $name)
45     {
46     ?>
47 joy 366 <h1 align="center">Packages overview for <?print $name?></h1>
48 igenibel 358
49 joy 366 <p><strong>General information:</strong></p>
50 igenibel 358 <?
51     if ($keys == "NOID") {
52     ?>
53 joy 366 <p><font size="+1" color="red">GPG key id not found!</font>
54     <font size="-2">(key id was not found neither in the Debian keyring
55     nor on a public keyserver)</font></p>
56 igenibel 358 <?
57     }else{
58     foreach (explode(",", $keys) as $key) {
59     ?>
60 joy 366 <font size="-1">GPG key id: <a href="developer.php?gpg_key=<?print $key?>"><?print $key?></a></font><br>
61 igenibel 358 <?
62     }
63     }
64     }
65    
66     function print_header_entries_body($login, $key, $name)
67     {
68     $lintian = preg_replace("/[\s-\"í']/", "_", $name);
69     $buildd=urlencode("$name <$login> ");
70     ?>
71     <font size="-1">
72     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=maint&data=<? print $login ?>&archive=no&raw=yes&bug-rev=yes&pend-exc=fixed&pend-exc=done">Non-fixed bugs, most recent first</a><br>
73     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?maint=<?print $login?>">All bugs related to &lt;<?print $login?>&gt;</a><br>
74     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=maint&data=<?print rawurlencode($login)?>&archive=no&pend-exc=done&sev-inc=critical&sev-inc=grave&sev-inc=serious">RC Bugs related to &lt;<?print $login?>&gt;</a><br>
75     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=<?print $login?>">All bugs submitted by &lt;<?print $login?>&gt;</a><br>
76     <a href="http://lintian.debian.org/reports/m<?print $lintian?>.html">Lintian report</a><br>
77     <a href="http://buildd.debian.org/bymaint.php?maint=<?print "$buildd"?>">Buildd report</a>
78     </font>
79    
80     <hr>
81     <font size="-1">
82     <b>Packages in <font color="blue">blue</font> are packages that are uploaded by developer (reference to Uploaders: field)</b><br>
83 joy 367 <b>Packages version in <font color="red">red</font> are NMUed</b><br>
84 joy 369 <b>Packages where testing version in <font color="purple">purple</font> are those where the unstable version differs from the version in testing</b>
85 igenibel 358 </font>
86     <?
87     }
88    
89     #
90     # print info for not found developer
91     #
92    
93     function print_notfound($login)
94     {
95     print "<h2>No information available for $login</h2>";
96     }
97    
98    
99     #
100     # print the form because no login provided
101     #
102    
103     function print_form()
104     {
105     ?>
106 joy 366
107     <h1>Debian Developer's Packages Overview</h1>
108    
109     <p>Use the following search forms to determine the Debian developer whose
110     packages overview you wish to see:</p>
111    
112     <p>Search based on the <tt>Maintainer</tt> field in packages:
113 igenibel 358 <form method="GET" action="developer.php">
114     <input size="30" maxsize="40" type="text" limit="16" name="login" value="">
115 joy 366 <input type="submit" value="Find">
116     </form>
117     <small>
118     (if a single username is provided, @debian.org is automatically appended)
119     </small>
120    
121     <p>Search based on a GPG key ID:
122 igenibel 358 <form method="GET" action="developer.php">
123     <input size="8" maxsize="8" type="text" limit="8" name="gpg_key" value="">
124 joy 366 <input type="submit" value="Find">
125     </form>
126    
127     <p>Search based on a source package name:
128 igenibel 358 <form method="GET" action="developer.php">
129     <input size="20" maxsize="30" type="text" limit="20" name="package" value="">
130     <input type="submit" value="Go">
131     </form>
132 joy 366
133 igenibel 358 <?
134     }
135    
136    
137     function print_query_all()
138     {
139     ?>
140 joy 366
141     <p>Do you want to see the complete, sorted list of developers?
142     <strong>(>200kb!)</strong>
143 igenibel 358 <form method="POST" action="developer.php">
144     <input type="hidden" name="all" value="1">
145 joy 366 <input type="submit" value="Show the list">
146 igenibel 358 </form>
147    
148     <?
149     }
150    
151     function print_all()
152     {
153     global $prefix;
154     $fp = fopen("$prefix/extract", "r");
155     ?>
156    
157 joy 369 <hr>
158    
159     <h2>Sorted developer list</h2>
160    
161 igenibel 358 <table width="100%" border="1">
162     <tr align="center">
163     <td width="60%">
164     <b>Name and email</b>
165     </td>
166     <td>
167     <b>main</b>
168     </td>
169     <td>
170     <b>non-US</b>
171     </td>
172     <td>
173     <b>Other <font size="-3" color="blue"><br>all contrib &<br>non-free<br>packages</font></b>
174     </td>
175     <td>
176     <b>Total</b>
177     </td>
178     </tr>
179    
180     <?
181     while(!feof($fp)) {
182     $line = fgets($fp, "10240");
183     if($line != "") {
184     $count = 0;
185     $line = preg_replace("/, /", ",", $line);
186     preg_match("/;(.+?);(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)$/", $line, $info_array);
187     print '<tr align="center">';
188     print '<td width="15%">';
189     print "<b><a href=\"$index_page?login=$info_array[1]\">$info_array[3] &lt;$info_array[1]&gt;</a></b>";
190     print '</td>';
191     $main = 0;
192     $nonUS = 0;
193     $other = 0;
194     if($info_array[4] != "") {
195     $main += count(explode(" ", $info_array[4]));
196     $count += count(explode(" ", $info_array[4]));
197     }
198     if($info_array[5] != "") {
199     $other += count(explode(" ", $info_array[5]));
200     $count += count(explode(" ", $info_array[5]));
201     }
202     if($info_array[6] != "") {
203     $nonUS += count(explode(" ", $info_array[6]));
204     $count += count(explode(" ", $info_array[6]));
205     }
206     if($info_array[7] != "") {
207     $other += count(explode(" ", $info_array[7]));
208     $count += count(explode(" ", $info_array[7]));
209     }
210     if($info_array[8] != "") {
211     $other += count(explode(" ", $info_array[8]));
212     $count += count(explode(" ", $info_array[8]));
213     }
214     if($info_array[9] != "") {
215     $other += count(explode(" ", $info_array[9]));
216     $count += count(explode(" ", $info_array[9]));
217     }
218    
219     ?>
220     <td><? print $main?></td>
221     <td><? print $nonUS?></td>
222     <td><? print $other?></td>
223     <td><b><? print $count?></b></td>
224     </tr>
225     <?
226     }
227     }
228     print '</table>';
229     }
230    
231     function get_rep($package_name)
232     {
233     if(preg_match("/^lib/", $package_name)) {
234     return substr($package_name, 0, 4);
235     }else{
236     return substr($package_name, 0, 1);
237     }
238     }
239    
240 weasel 362 # Check whether there is a debcheck entry for that package
241     function debcheckavailable($branch, $package_name) {
242     $package = ereg_replace ("\.", "_", $package_name);
243     if (ereg ("[^a-zA-Z0-9+_-]", $package) ||
244     ($branch != "oldstable" && $branch != "stable" && $branch != "testing" && $branch != "unstable")) {
245     return 0;
246     }
247     $BASEDIR='/org/qa.debian.org/data/debcheck/result/';
248     return file_exists($BASEDIR.'/'.$branch.'/packages/'.$package);
249     }
250    
251 igenibel 358 #
252     # This function print a package table information for specific branch
253     # given in argument
254     #
255     function print_package_entries($branch, $packages)
256     {
257    
258     $packages = preg_replace ("/, /", ",", $packages);
259     $pack_array = split(" ", $packages);
260    
261     ?>
262 joy 369
263     <h3>Packages in <em><?print $branch?></em></h3>
264    
265     <table width="100%" border="1" cellpadding="0">
266 igenibel 358 <tr align="center">
267 joy 369 <th rowspan="2"><small><font color="green">Source&nbsp;Name</font></small></th>
268     <th rowspan="1" colspan="5"><small><font color="green">Bugs</font></small></th>
269     <th rowspan="1" colspan="4"><small><font color="green">Version</font></small></th>
270     <th rowspan="1" colspan="2"><small><font color="green">Security</font></small></th>
271     <th rowspan="2"><small><font color="green">Binary<br> Package Page</font></small></th>
272     <th rowspan="2"><small><font color="green">Buildd</font></small></th>
273     <th rowspan="2"><small><font color="green">Excuses</font></small></th>
274     <th rowspan="1" colspan="3"><small><font color="green">Broken dependencies</font></small></th>
275     <th rowspan="2"><small><font color="green">Section</font></small></th>
276     <th rowspan="2"><small><font color="green">Priority</font></small></th>
277     <th rowspan="2"><small><font color="green">Pool</font></small></th>
278     <th rowspan="1" colspan="3"><small><font color="green">Uninstallable</font></small></th>
279 igenibel 358 </tr>
280     <tr align="center">
281 joy 369 <th><small><font color="green"><span title="All opened bugs">All</a></font></small></th>
282     <th><small><font color="green"><span title="Release Critical bugs">RC</a></font></small></th>
283     <th><small><font color="green"><span title="Important & Normal bugs">I&amp;N</a></font></small></th>
284     <th><small><font color="green"><span title="Minor & Wishlist bugs">M&amp;W</a></font></small></th>
285     <th><small><font color="green"><span title="Fixed & Pending bugs">F&amp;P</a></font></small></th>
286     <th><small><font color="green">Stable</font></small></th>
287     <th><small><font color="green">Testing</font></small></th>
288     <th><small><font color="green">Unstable</font></small></th>
289     <th><small><font color="green">Exp.</font></small></th>
290     <th><small><font color="green">Stable</font></small></th>
291     <th><small><font color="green">Testing</font></small></th>
292     <th><small><font color="green">Stable</font></small></th>
293     <th><small><font color="green">Testing</font></small></th>
294     <th><small><font color="green">Unstable</font></small></th>
295     <th><small><font color="green">Stable</font></small></th>
296     <th><small><font color="green">Testing</font></small></th>
297     <th><small><font color="green">Unstable</font></small></th>
298 igenibel 358 </tr>
299     <?
300     foreach ($pack_array as $package)
301     {
302     global $prefix;
303     # print "<<< $package >>>";
304     # $upstream = $package[1];
305     preg_match("/(.+)\((.+)\)/", $package, $result);
306     $list = split (",", $result[2]);
307     $package_name = $result[1];
308     if(preg_match("/#/", $package)) {
309     $uploader = 1;
310     $package = preg_replace("/#/", "", $package);
311     }
312     if(preg_match("/%/", $package)) {
313     $all = 1;
314     $package = preg_replace("/%/", "", $package);
315     }
316     preg_match("/(.+?)\[(.+)\]\{(.+)\}\{(.+)\}\{(.+)\}\|(.+)\|:(.+):/", $package, $results);
317     $package = $package_name;
318     $version = $results[2];
319     $versions = explode (",", $version);
320     $version_stable = $versions[0];
321     $version_testing = $versions[1];
322     $version_unstable = $versions[2];
323     $version_experimental = $versions[3];
324     $security_stable = $versions[4];
325     $security_testing = $versions[5];
326     $uninstalable_stable = preg_replace("/,/", "&nbsp;", $results[3]);
327     $uninstalable_testing = preg_replace("/,/", "&nbsp;", $results[4]);
328     $uninstalable_unstable = preg_replace("/,/", "&nbsp;", $results[5]);
329     $priority = $results[6];
330     $section = $results[7];
331    
332     $fp = fopen("$prefix/bugs.txt", "r");
333     $bug_list = explode(" ", "0 0 0 0");
334     $temp = preg_replace("/\+/", "_", $package);
335     while(!feof($fp)) {
336     $line = fgets($fp, "512");
337     $line = preg_replace("/\+/", "_", $line);
338     if(preg_match("/^$temp\s+(\d+\s\d+\s\d+\s\d+)/", $line, $results)) {
339     $bug_list = explode(" ", $results[1]);
340     break;
341     }
342    
343     }
344     fclose($fp);
345    
346 weasel 362 if(strcmp($version_stable, "-") == 0 || !debcheckavailable('stable', $package)) {
347     $stable_dep = "<font size=\"-1\">-</font>";
348 igenibel 358 }else{
349     $stable_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=stable&package=' . rawurlencode($package) .'">Stable</a></font>';
350     }
351    
352 weasel 362 if(strcmp($version_testing, "-")== 0 || !debcheckavailable('testing', $package)) {
353     $testing_dep = "<font size=\"-1\">-</font>";
354 igenibel 358 }else{
355     $testing_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=testing&package=' . rawurlencode($package) .'">Testing</a></font>';
356     }
357    
358     $buildd = "http://buildd.debian.org/build.php?pkg=".$package;
359     if(preg_match("/non-US/", $branch)) {
360     $pool = "http://non-us.debian.org/debian-non-US/pool/". $branch . "/" .get_rep($package) . "/" . $package . "/";
361     }else{
362     $pool = "http://ftp.debian.org/debian/pool/". $branch . "/" .get_rep($package) . "/" . $package;
363     }
364    
365 weasel 362 if(strcmp($version_unstable, "-")== 0 || !debcheckavailable('unstable', $package)) {
366     $sid_dep = "<font size=\"-1\">-</font>";
367     }else{
368     $sid_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=unstable&package=' . rawurlencode($package) . '">Unstable</a></font>';
369     }
370 igenibel 358 $char = substr($package, 0, 1);
371     if(file_exists("$prefix/excuses/$char/$package")) {
372     $excuse = "<a href=\"developer.php?excuse=$package\">Excuses</a>";
373     }else{
374     $excuse = "No";
375     }
376    
377     if(strcmp($version_experimental, "-")) {
378     $version_experimental = '<font color="2222AA"><b>' . $version_experimental . '</b></font>';
379     }
380     $experimental = '<td rowspan="1" colspan="1"><font size="-1">' . $version_experimental . '</font></td>';
381    
382    
383     if((strcmp ($version_stable, $version_testing) == 0) &&
384     (strcmp ($version_stable, "/") != 0)) {
385     if((strcmp ($version_unstable, $version_testing) == 0)) {
386     $version_print = '<td rowspan="1" colspan="3"><font size="-1">' . $version_stable . '</font></td>' .$experimental;
387     }else{
388 joy 369 $version_print = '<td rowspan="1" colspan="2"><font size="-1" color="purple">' . $version_stable . '</font></td><td rowspan="1" colspan="1"><font size="-1">' . $version_unstable . '</font></td>' . $experimental;
389 igenibel 358 }
390     $ver = explode("-", $version_unstable);
391     if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
392     {
393     $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
394     }
395     }else if(strcmp ($version_testing, $version_unstable) == 0) {
396     if(strcmp($version_stable, "/") != 0) {
397     $version_stable = '<font color="#00AADD" size="-1">'.$version_stable.'</font>';
398     }
399     $version_print = '<td><font size="-1">'.$version_stable.'</font></td><td rowspan="1" colspan="2"><font size="-1">' . $version_testing .'</font></td>' .$experimental;
400     $ver = explode("-", $version_unstable);
401     if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
402     {
403     $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
404     }
405     }else {
406     if(strcmp($version_stable, "/") != 0) {
407     $version_stable = '<font color="#00AADD" size="-1">'.$version_stable.'</font>';
408     }else{
409     $version_stable = '<font size="-1">'.$version_stable.'</font>';
410     }
411 joy 369 $version_print = '<td>' . $version_stable . '</td><td><font size="-1" color="purple">'.$version_testing . '</font></td><td><font size="-1">'.$version_unstable.'</font></td>' . $experimental;
412 igenibel 358 $ver = explode("-", $version_unstable);
413     if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
414     {
415     $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
416     }
417     }
418    
419     ?>
420     <tr align="center">
421     <td width="15%">
422     <font size="-1"
423     <?
424     if($uploader == 1) {
425     print ' color="blue"';
426     $uploader = 0;
427     }
428     print "><b>$package</b><a href=\"http://pts.debian.net/".get_rep($package)."/$package.html\">[pts]</a>";
429     ?></font></td>
430     <td>
431     <font size="-1">
432     <?
433     $bugs = "http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=". rawurlencode($package)."&repeatmerged=yes&archive=no&pend-exc=pending-fixed&pend-exc=fixed&pend-exc=done";
434     $bugs_all = "http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=". rawurlencode($package);
435     $bug_count = $bug_list[0] + $bug_list[1] + $bug_list[2] + $bug_list[3];
436     if($bug_count == 0) { ?>
437     <font size="-1">0</font>
438     <? }else{ ?>
439     <a href="<?print $bugs_all?>"><? print $bug_count; ?></a>
440     <? } ?>
441     </font>
442     </td>
443     <td>
444     <?
445     if(!strcmp($bug_list[0], "0")) { ?>
446     <font size="-1">0</font>
447     <? }else{ ?>
448     <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=critical&sev-inc=grave&sev-inc=serious"><? print $bug_list[0]; ?></a></font>
449     <? } ?>
450     </td>
451     <td>
452     <?
453     if(!strcmp($bug_list[1], "0")) { ?>
454     <font size="-1">0</font>
455     <? }else{ ?>
456     <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=important&sev-inc=normal"><? print $bug_list[1]; ?></a></font>
457     <? } ?>
458     </td>
459     <td>
460     <?
461     if(!strcmp($bug_list[2], "0")) { ?>
462     <font size="-1">0</font>
463     <? }else{ ?>
464     <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=minor&sev-inc=wishlist"><? print $bug_list[2]; ?></a></font>
465     <? } ?>
466     </td>
467     <td>
468     <?
469     if(!strcmp($bug_list[3], "0")) { ?>
470     <font size="-1">0</font>
471     <? }else{ ?>
472     <font size="-1"><a class="a" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=<? print rawurlencode($package); ?>&repeatmerged=yes&archive=no&pend-inc=pending-fixed&pend-inc=fixed"><? print $bug_list[3]; ?></a></font>
473     <? } ?>
474     </td>
475     <?
476    
477     print $version_print;
478     if(strcmp($security_stable,"-")) {
479     $security_stable = "<font color=\"red\">$security_stable</font>";
480     }
481     if(strcmp($security_testing,"-")) {
482     $security_testing = "<font color=\"red\">$security_stable</font>";
483     }
484     print '<td><font size="-1">'.$security_stable.'</font></td><td><font size="-1">'.$security_testing.'</font></td>';
485     ?>
486     <td width="15%">
487     <font size="-1">
488     <?
489     for ($i = 1; $i <= count($list); $i++) {
490     $url = rawurlencode("${list[$i -1]}");
491     print '<a href="http://packages.debian.org/';
492     print $url;
493     print '">';
494     print $i;
495     print "</a>";
496     if(($i % 3 ) == 0) {
497     print " ";
498     }else{
499     print "&nbsp;";
500     }
501     }
502     ?>
503     </font>
504     </td>
505     <td>
506     <font size="-1">
507     <?
508     if($all == 1) {
509     print "Arch. All";
510     $all = 0;
511     }else{
512     print "<a href=\"$buildd\">Buildd</a>";
513     }
514     ?>
515     </font>
516     </td>
517     <td>
518     <font size="-1">
519     <?
520     print $excuse;
521     ?>
522     </font>
523     </td>
524     <td>
525     <?print $stable_dep?>
526     </td>
527     <td>
528     <?print $testing_dep?>
529     </td>
530     <td>
531     <?print $sid_dep?>
532     </td>
533     <td>
534     <?
535     print "<font size=\"-1\">$section</font>";
536     ?>
537     </td>
538     <td>
539     <?
540     print "<font size=\"-1\">$priority</font>";
541     ?>
542     </td>
543     <td>
544     <font size="-1">
545     <a href="<?print $pool?>">Pool</a>
546     </font>
547     </td>
548     <td>
549     <?
550     print "<font size=\"-1\">$uninstalable_stable</font>";
551     ?>
552     </td>
553     <td>
554     <?
555     print "<font size=\"-1\">$uninstalable_testing</font>";
556     ?>
557     </td>
558     <td>
559     <?
560     print "<font size=\"-1\">$uninstalable_unstable</font>";
561     ?>
562     </td>
563     </tr>
564     <?
565     }
566     ?>
567     </table>
568     </font>
569     <?
570     }
571    
572     if($excuse != "") {
573     $char = substr($excuse, 0, 1);
574     if(file_exists("$prefix/excuses/$char/$excuse")) {
575     $fp = fopen("$prefix/excuses/$char/$excuse","r");
576     print fread ($fp, filesize ("$prefix/excuses/$char/$excuse"));
577     fclose($fp);
578     }else{
579     print "<h2>No excuse for $excuse</h2>";
580     }
581     }else if($gpg_key != "") {
582     $contents = file("$prefix/extract");
583    
584     $printed = 0;
585     $match = 0;
586    
587     $gpg_key = preg_replace ("/0x/i", "", $gpg_key);
588     foreach ($contents as $line) {
589     if(preg_match("/;(.+?);(.*$gpg_key.*);(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $line, $pack_array)) {
590     $match += 1;
591     if($printed == 0) {
592     print_header_entries_top($pack_array[2], $pack_array[3]);
593     $printed = 1;
594     }else{
595     print "<hr>";
596     }
597    
598     print_header_entries_body($pack_array[1], $pack_array[2], $pack_array[3]);
599     $count = 4;
600     foreach ($branch as $value) {
601     if($pack_array[$count] != "") {
602     print_package_entries($value, $pack_array[$count]);
603     }
604     $count += 1;
605     }
606     }
607     }
608     if($match == 0) {
609     print_notfound($gpg_key);
610     }
611    
612     printBackLink();
613     }else if($login != "") {
614     $fp = fopen("$prefix/extract", "r");
615     $contents = fread($fp, filesize ("$prefix/extract"));
616    
617     if(! preg_match("/@/i", $login)) {
618     $login .= "@debian.org";
619     }
620    
621     if(preg_match("/;$login;(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $contents, $pack_array))
622     {
623     print_header_entries_top($pack_array[1], $pack_array[2]);
624     print_header_entries_body($login, $pack_array[1], $pack_array[2]);
625     $count = 3;
626     foreach ($branch as $value) {
627     if($pack_array[$count] != "") {
628     print_package_entries($value, $pack_array[$count]);
629     }
630     $count += 1;
631     }
632     }else{
633     print_notfound($login);
634     }
635     fclose($fp);
636     printBackLink();
637     }else if ($package != "") {
638     $fp = fopen("$prefix/extract", "r");
639     $found = 0;
640     if(preg_match("/\+\+/", $package)) {
641     $package_short = preg_replace("/\+/", "", $package);
642     $regexp="/[ ;]$package_short..\(/";
643     }elseif(preg_match("/\+/", $package)){
644     $package_short = preg_replace("/\+/", "", $package);
645     $regexp="/[ ;]$package_short.\(/";
646     }else{
647     $regexp="/[ ;]$package\(/";
648     }
649     while(!feof($fp)) {
650     $line = fgets($fp, "8192");
651     if(preg_match("$regexp", $line, $results)) {
652     $found = 1;
653     preg_match("/;(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $line, $pack_array);
654     print_header_entries_top($pack_array[2], $pack_array[3]);
655     print_header_entries_body($pack_array[1], $pack_array[2], $pack_array[3]);
656     $count = 4;
657     foreach ($branch as $value) {
658     if($pack_array[$count] != "") {
659     print_package_entries($value, $pack_array[$count]);
660     }
661     $count += 1;
662     }
663     }
664     }
665     if($found == 0) {
666     print_notfound($package);
667     }
668     fclose($fp);
669     printBackLink();
670     }else{
671     print_form();
672     if($all) {
673     print_all();
674     }else{
675     print_query_all();
676     }
677     }
678    
679     $fp = fopen("$prefix/extract.date", "r");
680     $general = fgets($fp, "512");
681     fclose($fp);
682     $fp = fopen("$prefix/bugs.date", "r");
683     $bugs = fgets($fp, "512");
684     fclose($fp);
685     ?>
686 joy 368 <hr>
687 igenibel 358 <div align="left">
688 joy 368 <p><small>
689 igenibel 358 Last updated:<br>
690 joy 368 General information: <? print $general; ?><br>
691     Bugs information: <? print $bugs; ?>
692     </small></p>
693 igenibel 358 </div>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5