wnpp/ftp.debian.org support for developer.php
Hi Igor,
See attached patch. It might need some slight modifications to get it to
work on merkel, but as I'm not a Debian developer, I cannot do so
myself. I succesfully tested it on my own system.
It will do nothing as long as the bts-wnpp_rm script is not running, you
can run it once manually if you wish (being in that directory), Martin
Michlmayr offered to add it to cron hourly (or you can do so, whatever).
Thanks,
--Jeroen
--- developer.php.orig 2004-11-06 22:43:20.000000000 +0100
+++ developer.php 2004-11-06 23:01:16.000000000 +0100
@@ -1057,6 +1057,26 @@
}
/*
+ Print possible wnpp entries and/or removal requests for this source package
+ as consise links, or nothing if there are none
+*/
+function get_wnpp_rm($package)
+{
+ static $db;
+ if (!$db) $db = dba_open("/org/qa.debian.org/data/bts/wnpp_rm.db", 'r-', 'db2');
+ if (!$db) return;
+ $entries = dba_fetch($package, $db);
+ if (!$entries) return;
+ $entries = explode('|', $entries);
+ $ret = "";
+ foreach ($entries as $entry) {
+ preg_match('/(\\S+)\\s+(\\S+)/', $entry, $m);
+ $ret .= "<a href=\"http://bugs.debian.org/$m[2]\"><strong>[$m[1]]</strong></a>";
+ }
+ return $ret;
+}
+
+/*
This function print a package table information for specific branch
given in argument
*/
@@ -1323,7 +1343,7 @@
}
$line = "";
- $line_data = html_b($package) . html_br() . html_a("[pts]", "http://packages.qa.debian.org/".get_rep($package)."/$package.html") . html_blank() . html_a("[popcon]", "developer.php?popcon=$package");
+ $line_data = html_b($package) . get_wnpp_rm($package) . html_br() . html_a("[pts]", "http://packages.qa.debian.org/".get_rep($package)."/$package.html") . html_blank() . html_a("[popcon]", "developer.php?popcon=$package");
if($uploader == 1)
{
$line = html_td(html_small_color($line_data, "blue"));
--
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl
Reply to: