From owner-svn-doc-head@FreeBSD.ORG Sat Sep 27 11:44:32 2014 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77A4BDB2; Sat, 27 Sep 2014 11:44:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62884295; Sat, 27 Sep 2014 11:44:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8RBiWX0010292; Sat, 27 Sep 2014 11:44:32 GMT (envelope-from gavin@FreeBSD.org) Received: (from gavin@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8RBiWg2010291; Sat, 27 Sep 2014 11:44:32 GMT (envelope-from gavin@FreeBSD.org) Message-Id: <201409271144.s8RBiWg2010291@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: gavin set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson Date: Sat, 27 Sep 2014 11:44:32 +0000 (UTC) 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 X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 11:44:32 -0000 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 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 () { - 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;