Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2014 11:44:32 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r45685 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <201409271144.s8RBiWg2010291@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409271144.s8RBiWg2010291>