[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

content search should link to containing packages



Howdy,

The appended patch adds a link to the containing package when
someone performs a contents search.

Matt

--- /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";
 	}
      }

Attachment: pgpkRj4Aa699b.pgp
Description: PGP signature


Reply to: