Re: content search should link to containing packages
On Sat, Dec 23, 2000 at 04:03:17PM -0800, Matt Kraai wrote:
> The appended patch adds a link to the containing package when
> someone performs a contents search.
>
> --- /org/cgi.debian.org/cgi-bin/search_contents.pl Sat Dec 9 16:43:00 2000
> +++ search_contents.pl Sat Dec 23 17:59:24 2000
> @@ -89,6 +89,7 @@
> print " <STRONG>FILE PACKAGE</STRONG><HR>\n";
> for(my $i = 0; $i < $results_per_page; $i++) {
> if(defined($line{$i})) {
> + $line{$i} ~= s/(\S*)$/<a href="http:\/\/packages.debian.org\/$version\/\1.html">\1<\/a>/;
> print $line{$i} . "\n";
> }
> }
Good idea! Aside from a few details ;) I've applied it. Thanks.
BTW your Mail-Followup-To: was broken (no domain after your username).
--
Digital Electronic Being Intended for Assassination and Nullification
Reply to: