[Dehs-devel] r74 - in trunk: . www

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Sun Dec 16 00:09:41 UTC 2007


Author: atomo64-guest
Date: 2007-12-16 00:09:41 +0000 (Sun, 16 Dec 2007)
New Revision: 74

Modified:
   trunk/dehs_pg.php
   trunk/www/maintainer.php
Log:
dehs_pg.php: really allow -db_query without specifying a distribution
maintainer.php: add link to upstream's source

Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2007-12-15 23:54:47 UTC (rev 73)
+++ trunk/dehs_pg.php	2007-12-16 00:09:41 UTC (rev 74)
@@ -59,7 +59,7 @@
 }
 
 if (in_array("-db_add",$argv))  db_add((isset($argv[2])?$argv[2]:''), false);
-    elseif (in_array("-db_query",$argv))  db_query($argv[2],$argv[3] );
+    elseif (in_array("-db_query",$argv))  db_query($argv[2],(isset($argv[3])?$argv[3]:'%') );
     elseif (in_array("-dl_diffs",$argv) || in_array("-keep_diff",$argv))  dl_diffs($argv[2]);
     elseif (in_array("-keep_sources",$argv) || in_array("-download_sources",$argv))  download_sources();
     elseif (in_array("-db_popcon",$argv))  db_popcon($argv[2]);

Modified: trunk/www/maintainer.php
===================================================================
--- trunk/www/maintainer.php	2007-12-15 23:54:47 UTC (rev 73)
+++ trunk/www/maintainer.php	2007-12-16 00:09:41 UTC (rev 74)
@@ -122,7 +122,11 @@
 			<?} else print $res_array["up_version"];
 			}
 			else print "None";?></li>
-<? } ?>
+<? }
+if (!empty($res_array['up_url'])) {
+    echo '<li><b>Source download: </b> <a href="' . htmlentities($res_array['up_url']) . '">' . htmlentities(basename($res_array['up_url'])) . '</a></li>';
+}
+?>
 <li><b>Debian Version: </b><? print $res_array["version"]; ?></li>
 <li><b>Tot Upstream Bugs: </b><? if ($res_array["tot_up_error"]) echo "<a href='http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=".urlencode($res_array["name"]).";dist=".urlencode($res_array["dist"]).";tag=upstream'>"; print number_format($res_array["tot_up_error"] ,0); if ($res_array["tot_up_error"]) echo '</a>'; ?></li>
 <li><b>Avg days opened: </b><? print number_format($res_array["tot_avg_error_date"],0); ?></li>




More information about the Dehs-devel mailing list