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
This commit is contained in:
parent
d9717ce81a
commit
c36a52f60b
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45685
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue