svn commit: r45685 - head/en_US.ISO8859-1/htdocs/cgi

Gavin Atkinson gavin at FreeBSD.org
Sat Sep 27 11:44:32 UTC 2014


Author: gavin
Date: Sat Sep 27 11:44:31 2014
New Revision: 45685
URL: http://svnweb.freebsd.org/changeset/doc/45685

Log:
  In ports.cgi, when indexing the INDEX file, track what we have found by
  using the port origin rather than the link to the port pkg-descr.  For
  ports which are sub-ports of others (e.g. most pf te php5* ports) all
  would have the same pkg-descr listed in the index and so we would only
  show the last-found port, rather than all matching ports.
  
  Reported by:	Can0r <can0r yandex ru> via -doc

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/ports.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/ports.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/ports.cgi	Sat Sep 27 11:10:05 2014	(r45684)
+++ head/en_US.ISO8859-1/htdocs/cgi/ports.cgi	Sat Sep 27 11:44:31 2014	(r45685)
@@ -240,14 +240,14 @@ sub readindex {
     };
 
     while (<C>) {
-        next if $query && !/$query/oi;
+        next if $query && !/$query/i;
         chop;
 
         @tmp            = split(/\|/);
-        $var{"$tmp[4]"} = $_;
+        $var{"$tmp[1]"} = $_;
         @s              = split( /\s+/, $tmp[6] );
         foreach (@s) {
-            $msec{"$tmp[4],$_"} = 1;
+            $msec{"$tmp[1],$_"} = 1;
         }
     }
     close C;


More information about the svn-doc-head mailing list