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

Gavin Atkinson <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.